From 369426bef010c553d2a08cceb96d75af0bfb0c95 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Mon, 14 Jul 2008 22:15:01 -0500 Subject: [PATCH] ui.gadgets.frames: remove 'make-frame' --- extra/ui/gadgets/frames/frames-docs.factor | 9 +-------- extra/ui/gadgets/frames/frames.factor | 3 --- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/extra/ui/gadgets/frames/frames-docs.factor b/extra/ui/gadgets/frames/frames-docs.factor index bb759cf92e..db3ae856b1 100755 --- a/extra/ui/gadgets/frames/frames-docs.factor +++ b/extra/ui/gadgets/frames/frames-docs.factor @@ -8,7 +8,6 @@ ARTICLE: "ui-frame-layout" "Frame layouts" "Creating empty frames:" { $subsection } "Creating new frames using a combinator:" -{ $subsection make-frame } { $subsection frame, } "A set of mnemonic words for the positions on a frame's 3x3 grid; these words push values which may be passed to " { $link grid-add } " or " { $link frame, } ":" { $subsection @center } @@ -44,15 +43,9 @@ HELP: { $values { "frame" frame } } { $description "Creates a new " { $link frame } " for laying out gadgets in a 3x3 grid." } ; -{ make-frame } related-words - -HELP: make-frame -{ $values { "quot" quotation } { "frame" frame } } -{ $description "Creates a new frame. The quotation can add children by calling the " { $link frame, } " word." } ; - HELP: frame, { $values { "gadget" gadget } { "i" "non-negative integer" } { "j" "non-negative integer" } } -{ $description "Adds a child gadget at the specified location. This word can only be called inside the quotation passed to " { $link make-frame } "." } ; +{ $description "Adds a child gadget at the specified location. This word can only be called inside the quotation passed to make-frame." } ; { grid frame } related-words diff --git a/extra/ui/gadgets/frames/frames.factor b/extra/ui/gadgets/frames/frames.factor index 717323c69a..4e0601d4c3 100644 --- a/extra/ui/gadgets/frames/frames.factor +++ b/extra/ui/gadgets/frames/frames.factor @@ -39,8 +39,5 @@ M: frame layout* [ rot rect-dim fill-center ] 3keep grid-layout ; -: make-frame ( quot -- frame ) - swap make-gadget ; inline - : frame, ( gadget i j -- ) gadget get -rot grid-add ;