From a1e0be33b2c8147fa8953fe9ff5ae9d9e044f262 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 14 Jul 2008 16:37:06 -0500 Subject: [PATCH] ui.tools.listener: rewrite --- extra/ui/tools/listener/listener.factor | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/extra/ui/tools/listener/listener.factor b/extra/ui/tools/listener/listener.factor index 3331999cc1..f6d9f54efd 100755 --- a/extra/ui/tools/listener/listener.factor +++ b/extra/ui/tools/listener/listener.factor @@ -120,14 +120,13 @@ M: engine-word word-completion-string TUPLE: stack-display < track ; -: ( -- gadget ) - g workspace-listener - { 0 1 } stack-display new-track - [ - dup f track, - stack>> [ [ stack. ] curry try ] - t "Data stack" 1 track, - ] make-gadget ; +: ( workspace -- gadget ) + listener>> + { 0 1 } stack-display new-track + over f track-add* + swap + stack>> [ [ stack. ] curry try ] t "Data stack" + 1 track-add* ; M: stack-display tool-scroller find-workspace workspace-listener tool-scroller ;