diff --git a/extra/ui/tools/traceback/traceback.factor b/extra/ui/tools/traceback/traceback.factor index e1743a4bc8..ffea857429 100755 --- a/extra/ui/tools/traceback/traceback.factor +++ b/extra/ui/tools/traceback/traceback.factor @@ -1,10 +1,11 @@ ! Copyright (C) 2006, 2008 Slava Pestov. ! See http://factorcode.org/license.txt for BSD license. USING: accessors continuations kernel models namespaces -prettyprint ui ui.commands ui.gadgets ui.gadgets.labelled assocs -ui.gadgets.tracks ui.gadgets.buttons ui.gadgets.panes -ui.gadgets.status-bar ui.gadgets.scrollers ui.gestures sequences -hashtables inspector ; + prettyprint ui ui.commands ui.gadgets ui.gadgets.labelled assocs + ui.gadgets.tracks ui.gadgets.buttons ui.gadgets.panes + ui.gadgets.status-bar ui.gadgets.scrollers ui.gestures sequences + hashtables inspector ; + IN: ui.tools.traceback : ( model -- gadget ) @@ -24,20 +25,18 @@ TUPLE: traceback-gadget < track ; M: traceback-gadget pref-dim* drop { 550 600 } ; : ( model -- gadget ) - { 0 1 } traceback-gadget new-track - swap >>model - [ - g model>> - [ - [ - [ 1/2 track, ] - [ 1/2 track, ] - bi - ] { 1 0 } make-track 1/3 track, - ] - [ 2/3 track, ] bi - toolbar, - ] make-gadget ; + { 0 1 } traceback-gadget new-track + swap >>model + + dup model>> + { 1 0 } + over 1/2 track-add* + swap 1/2 track-add* + 1/3 track-add* + + dup model>> 2/3 track-add* + + dup f track-add* ; : ( model -- gadget ) [ [ continuation-name namestack. ] when* ]