-! Copyright (C) 2008 Slava Pestov\r
+! Copyright (C) 2008, 2010 Slava Pestov\r
! See http://factorcode.org/license.txt for BSD license.\r
USING: calendar namespaces models threads kernel init ;\r
IN: calendar.model\r
(time-thread)\r
] "Time model update" spawn drop ;\r
\r
-f <model> time set-global\r
-[ time-thread ] "calendar.model" add-startup-hook\r
+[\r
+ f <model> time set-global\r
+ time-thread\r
+] "calendar.model" add-startup-hook\r
-! Copyright (C) 2009 Slava Pestov.
+! Copyright (C) 2009, 2010 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: models source-files.errors namespaces models.delay init
kernel calendar ;
SYMBOLS: (error-list-model) error-list-model ;
-(error-list-model) [ f <model> ] initialize
-
-error-list-model [ (error-list-model) get-global 100 milliseconds <delay> ] initialize
-
SINGLETON: updater
-M: updater errors-changed drop f (error-list-model) get-global set-model ;
+M: updater errors-changed
+ drop f (error-list-model) get-global set-model ;
-[ updater add-error-observer ] "ui.tools.error-list" add-startup-hook
+[
+ f <model> (error-list-model) set-global
+ (error-list-model) get-global 100 milliseconds <delay> error-list-model set-global
+ updater add-error-observer
+] "ui.tools.error-list" add-startup-hook