]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/ui/ui.factor
basis: use lint.vocabs tool to trim using lists
[factor.git] / basis / ui / ui.factor
index 378e46907eb0c278fbb1b754e865620f111c8a91..b2b556a42635f108fb64d89004876d68653b15b6 100644 (file)
@@ -3,7 +3,7 @@
 USING: accessors arrays assocs boxes classes.tuple
 classes.tuple.parser combinators combinators.short-circuit
 concurrency.flags concurrency.promises continuations deques
-destructors dlists init kernel lexer make math math.functions
+destructors dlists kernel lexer make math math.functions
 namespaces parser sequences sets strings threads ui.backend
 ui.gadgets ui.gadgets.private ui.gadgets.worlds ui.gestures
 ui.render vectors vocabs.parser words ;
@@ -208,10 +208,10 @@ HOOK: close-window ui-backend ( gadget -- )
 M: object close-window
     find-world [ ungraft ] when* ;
 
-[
+STARTUP-HOOK: [
     f ui-running set-global
     <flag> ui-notify-flag set-global
-] "ui" add-startup-hook
+]
 
 HOOK: resize-window ui-backend ( world dim -- )
 M: object resize-window 2drop ;