From 1d8f7c5a89dc48b92100d38106588f6c34933c45 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Sun, 13 Jul 2008 16:36:23 -0500 Subject: [PATCH] ui.gadgets.menus: rewrite to not use 'gadget,' --- extra/ui/gadgets/menus/menus.factor | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extra/ui/gadgets/menus/menus.factor b/extra/ui/gadgets/menus/menus.factor index 4f815bc33d..2d7af47396 100644 --- a/extra/ui/gadgets/menus/menus.factor +++ b/extra/ui/gadgets/menus/menus.factor @@ -48,6 +48,7 @@ M: menu-glass layout* gadget-child prefer ; faint-boundary ; : ( hook target commands -- gadget ) - [ - [ >r 2dup r> gadget, ] each 2drop - ] make-filled-pile 5 menu-theme ; + + -roll + [ add-gadget ] with with each + 5 menu-theme ;