From 779dbb9ee69a822c30c64a45838b877ebb700eb2 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 14 Jul 2008 17:48:21 -0500 Subject: [PATCH] ui.gadgets.grids: grid-add* --- extra/ui/gadgets/grids/grids.factor | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extra/ui/gadgets/grids/grids.factor b/extra/ui/gadgets/grids/grids.factor index 474e6b95c0..f934ae5fa6 100644 --- a/extra/ui/gadgets/grids/grids.factor +++ b/extra/ui/gadgets/grids/grids.factor @@ -24,6 +24,8 @@ grid >r >r 2dup swap add-gadget drop r> r> 3dup grid-child unparent rot grid>> nth set-nth ; +: grid-add* ( grid child i j -- grid ) >r >r dupd swap r> r> grid-add ; + : grid-remove ( grid i j -- ) >r >r >r r> r> r> grid-add ;