some pasteboard repairs
svn: r14462
This commit is contained in:
parent
4ccff8023e
commit
406d0774c9
|
@ -1109,10 +1109,10 @@
|
||||||
(let loop ([s (send this find-first-snip)])
|
(let loop ([s (send this find-first-snip)])
|
||||||
(if s
|
(if s
|
||||||
(if (send this is-selected? s)
|
(if (send this is-selected? s)
|
||||||
|
(loop (snip->next s))
|
||||||
(begin
|
(begin
|
||||||
(send this add-selected s)
|
(send this add-selected s)
|
||||||
(cons s (loop (snip->next s))))
|
(cons s (loop (snip->next s)))))
|
||||||
(loop (snip->next s)))
|
|
||||||
null))])
|
null))])
|
||||||
(send this copy #t 0)
|
(send this copy #t 0)
|
||||||
(for-each (lambda (s)
|
(for-each (lambda (s)
|
||||||
|
@ -1134,7 +1134,7 @@
|
||||||
|
|
||||||
(for-each (lambda (s bfd)
|
(for-each (lambda (s bfd)
|
||||||
(unless (this . is-a? . text%)
|
(unless (this . is-a? . text%)
|
||||||
(send m insert s s)) ;; before itself -> at end
|
(send m insert s #f))
|
||||||
(when bfd
|
(when bfd
|
||||||
(send m set-snip-data s bfd)))
|
(send m set-snip-data s bfd)))
|
||||||
copy-snips
|
copy-snips
|
||||||
|
|
|
@ -1637,23 +1637,23 @@
|
||||||
|
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
|
|
||||||
(def/override (set-min-width [real? w])
|
(def/override (set-min-width [(make-alts real? (symbol-in none)) w])
|
||||||
(set! min-width (if (w . <= . 0) 'none w))
|
(set! min-width (if (and (real? w) (w . <= . 0)) 'none w))
|
||||||
(set! need-resize? #t)
|
(set! need-resize? #t)
|
||||||
(update-all))
|
(update-all))
|
||||||
|
|
||||||
(def/override (set-max-width [real? w])
|
(def/override (set-max-width [(make-alts real? (symbol-in none)) w])
|
||||||
(set! max-width (if (w . <= . 0) 'none w))
|
(set! max-width (if (and (real? w) (w . <= . 0)) 'none w))
|
||||||
(set! need-resize? #t)
|
(set! need-resize? #t)
|
||||||
(update-all))
|
(update-all))
|
||||||
|
|
||||||
(def/override (set-min-height [real? h])
|
(def/override (set-min-height [(make-alts real? (symbol-in none)) h])
|
||||||
(set! min-height (if (h . <= . 0) 'none h))
|
(set! min-height (if (and (real? h) (h . <= . 0)) 'none h))
|
||||||
(set! need-resize? #t)
|
(set! need-resize? #t)
|
||||||
(update-all))
|
(update-all))
|
||||||
|
|
||||||
(def/override (set-max-height [real? h])
|
(def/override (set-max-height [(make-alts real? (symbol-in none)) h])
|
||||||
(set! max-height (if (h . <= . 0) 'none h))
|
(set! max-height (if (and (real? h) (h . <= . 0)) 'none h))
|
||||||
(set! need-resize? #t)
|
(set! need-resize? #t)
|
||||||
(update-all))
|
(update-all))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user