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)])
|
||||
(if s
|
||||
(if (send this is-selected? s)
|
||||
(loop (snip->next s))
|
||||
(begin
|
||||
(send this add-selected s)
|
||||
(cons s (loop (snip->next s))))
|
||||
(loop (snip->next s)))
|
||||
(cons s (loop (snip->next s)))))
|
||||
null))])
|
||||
(send this copy #t 0)
|
||||
(for-each (lambda (s)
|
||||
|
@ -1134,7 +1134,7 @@
|
|||
|
||||
(for-each (lambda (s bfd)
|
||||
(unless (this . is-a? . text%)
|
||||
(send m insert s s)) ;; before itself -> at end
|
||||
(send m insert s #f))
|
||||
(when bfd
|
||||
(send m set-snip-data s bfd)))
|
||||
copy-snips
|
||||
|
|
|
@ -1637,23 +1637,23 @@
|
|||
|
||||
;; ----------------------------------------
|
||||
|
||||
(def/override (set-min-width [real? w])
|
||||
(set! min-width (if (w . <= . 0) 'none w))
|
||||
(def/override (set-min-width [(make-alts real? (symbol-in none)) w])
|
||||
(set! min-width (if (and (real? w) (w . <= . 0)) 'none w))
|
||||
(set! need-resize? #t)
|
||||
(update-all))
|
||||
|
||||
(def/override (set-max-width [real? w])
|
||||
(set! max-width (if (w . <= . 0) 'none w))
|
||||
(def/override (set-max-width [(make-alts real? (symbol-in none)) w])
|
||||
(set! max-width (if (and (real? w) (w . <= . 0)) 'none w))
|
||||
(set! need-resize? #t)
|
||||
(update-all))
|
||||
|
||||
(def/override (set-min-height [real? h])
|
||||
(set! min-height (if (h . <= . 0) 'none h))
|
||||
(def/override (set-min-height [(make-alts real? (symbol-in none)) h])
|
||||
(set! min-height (if (and (real? h) (h . <= . 0)) 'none h))
|
||||
(set! need-resize? #t)
|
||||
(update-all))
|
||||
|
||||
(def/override (set-max-height [real? h])
|
||||
(set! max-height (if (h . <= . 0) 'none h))
|
||||
(def/override (set-max-height [(make-alts real? (symbol-in none)) h])
|
||||
(set! max-height (if (and (real? h) (h . <= . 0)) 'none h))
|
||||
(set! need-resize? #t)
|
||||
(update-all))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user