diff --git a/extra/ui/gadgets/gadgets-docs.factor b/extra/ui/gadgets/gadgets-docs.factor index 597e811d7f..ac428799ab 100755 --- a/extra/ui/gadgets/gadgets-docs.factor +++ b/extra/ui/gadgets/gadgets-docs.factor @@ -180,10 +180,6 @@ HELP: focusable-child { $values { "gadget" gadget } { "child" gadget } } { $description "Outputs the child of the gadget which would prefer to receive keyboard focus." } ; -HELP: with-gadget -{ $values { "gadget" gadget } { "quot" quotation } } -{ $description "Calls the quotation in a new scope with the " { $link gadget } " variable set to " { $snippet "gadget" } } ; - { control-value set-control-value gadget-model } related-words HELP: control-value diff --git a/extra/ui/gadgets/gadgets.factor b/extra/ui/gadgets/gadgets.factor index 10ea9cbb7e..19593d2f22 100755 --- a/extra/ui/gadgets/gadgets.factor +++ b/extra/ui/gadgets/gadgets.factor @@ -357,9 +357,6 @@ M: f request-focus-on 2drop ; : focus-path ( world -- seq ) [ focus>> ] follow ; -: with-gadget ( gadget quot -- ) - gadget swap with-variable ; inline - ! Deprecated : set-gadget-delegate ( gadget tuple -- ) over [ diff --git a/extra/ui/ui-docs.factor b/extra/ui/ui-docs.factor index 7b7a6866c7..fc70b57af5 100755 --- a/extra/ui/ui-docs.factor +++ b/extra/ui/ui-docs.factor @@ -235,9 +235,7 @@ $nl $nl "Gadget construction combinators whose names are prefixed with " { $snippet "make-" } " construct new gadgets and push them on the stack. The primitive combinator used to define all combinators of this form:" "Words such as " { $link track, } " access the gadget through the " { $link gadget } " variable." -$nl -"A combinator which stores a gadget in the " { $link gadget } " variable:" -{ $subsection with-gadget } ; +; ARTICLE: "ui-null-layout" "Manual layouts" "When automatic layout is not appropriate, gadgets can be added to a parent with no layout policy, and then positioned and sized manually:"