ui.gadgets.menus: rewrite to not use 'gadget,'

db4
Eduardo Cavazos 2008-07-13 16:36:23 -05:00
parent 16fbd3c3a6
commit 1d8f7c5a89
1 changed files with 4 additions and 3 deletions

View File

@ -48,6 +48,7 @@ M: menu-glass layout* gadget-child prefer ;
faint-boundary ; faint-boundary ;
: <commands-menu> ( hook target commands -- gadget ) : <commands-menu> ( hook target commands -- gadget )
[ <filled-pile>
[ >r 2dup r> <menu-item> gadget, ] each 2drop -roll
] make-filled-pile 5 <border> menu-theme ; [ <menu-item> add-gadget ] with with each
5 <border> menu-theme ;