ui.gadgets.slots: rewrite 'display-slot'

db4
Eduardo Cavazos 2008-07-14 22:26:49 -05:00
parent 4bce4db2f7
commit b01bd3a032
1 changed files with 4 additions and 2 deletions

View File

@ -96,8 +96,10 @@ TUPLE: editable-slot < track printer ref ;
<roll-button> ;
: display-slot ( gadget editable-slot -- )
dup clear-track
[ 1 track, <edit-button> f track, ] with-gadget ;
dup clear-track
swap 1 track-add*
<edit-button> f track-add*
drop ;
: update-slot ( editable-slot -- )
[ [ ref>> get-ref ] [ printer>> ] bi call ] keep