Move size-of to unmaintained until help-lint is fixed
[factor/jcg.git] / unmaintained / factory / factory.factor
blob6faf334fc323cba8b1eb2c48664ab01eed2502d5
2 USING: kernel parser io io.files namespaces sequences editors threads vars
3        mortar mortar.sugar slot-accessors
4        x
5        x.widgets.wm.root
6        x.widgets.wm.frame 
7        x.widgets.wm.menu
8        factory.load
9        factory.commands ;
11 IN: factory
13 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
15 : manage-windows ( -- )
16 dpy get $default-root <- children [ <- mapped? ] filter
17 [ $id <wm-frame> new* drop ] each ;
19 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
21 VAR: root-menu
23 : create-root-menu ( -- ) <wm-menu> new* 1 <-- set-border-width >root-menu ;
25 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27 : start-factory ( display-string -- )
28 <display> new* >dpy
29 install-default-error-handler
30 create-wm-root
31 init-atoms
32 manage-windows 
33 load-factory-rc ;
35 : factory ( -- ) f start-factory stop ;
37 MAIN: factory