adjust switchable-button so that it can change its label

This commit is contained in:
Robby Findler 2016-02-09 18:16:36 -06:00
parent e9e2940138
commit 7d5144acba

View File

@ -65,6 +65,10 @@
[min-width-includes-label? #f])
(define/public (get-button-label) label)
(define/override (set-label l)
(set! label l)
(update-sizes)
(refresh))
(when (and (is-a? label bitmap%)
(not (send label ok?)))