diff --git a/extra/ui/gadgets/tabs/tabs.factor b/extra/ui/gadgets/tabs/tabs.factor index ce7e68c622..d9e322eed3 100755 --- a/extra/ui/gadgets/tabs/tabs.factor +++ b/extra/ui/gadgets/tabs/tabs.factor @@ -48,9 +48,13 @@ DEFER: (del-page) [ names>> index ] 2keep (del-page) ; : ( assoc -- tabbed ) - tabbed new-frame - [ g 0 >>model - 1 >>fill [ >>toggler ] keep swap @left grid-add - [ keys >vector g swap >>names ] - [ values g model>> [ >>content ] keep swap @center grid-add ] bi - g redo-toggler g ] with-gadget ; + tabbed new-frame + 0 >>model + 1 >>fill >>toggler + dup toggler>> @left grid-add* + swap + [ keys >vector >>names ] + [ values over model>> >>content dup content>> @center grid-add* ] + bi + dup redo-toggler ; +