From 8782ef8c5f35e09587733aa39b89b44fe22d5f4e Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 14 Jul 2008 20:13:42 -0500 Subject: [PATCH] ui.gadgets.labels: rewrite to not use 'make-track' --- extra/ui/gadgets/labels/labels.factor | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extra/ui/gadgets/labels/labels.factor b/extra/ui/gadgets/labels/labels.factor index 354e87a92d..e965d6b2b8 100755 --- a/extra/ui/gadgets/labels/labels.factor +++ b/extra/ui/gadgets/labels/labels.factor @@ -64,7 +64,11 @@ M: object >label ; M: f >label drop ; : label-on-left ( gadget label -- button ) - [ >label f track, 1 track, ] { 1 0 } make-track ; - + { 1 0 } + swap >label f track-add* + swap 1 track-add* ; + : label-on-right ( label gadget -- button ) - [ f track, >label 1 track, ] { 1 0 } make-track ; + { 1 0 } + swap f track-add* + swap >label 1 track-add* ;