diff --git a/examples/gadget-test.factor b/examples/gadget-test.factor index e5ec68d99b..859a20e1a4 100644 --- a/examples/gadget-test.factor +++ b/examples/gadget-test.factor @@ -42,20 +42,17 @@ USE: words [[ [ button-up 1 ] [ my-hand shape-x my-hand shape-y pick move-gadget world get add-gadget ] ]] }} swap set-gadget-gestures ; +: filled? "filled" get checkbox-selected? ; + : - dup moving-actions ; + filled? [ ] [ ] ifte dup moving-actions ; : - dup moving-actions ; + filled? [ ] [ ] ifte dup moving-actions ; : dup moving-actions ; -: check-box ( label -- checkbox ) - 0 0 0 0 - [ >r