(fix-drawing-add-ink! drawing cursor2 'bottom)
(set-demo-drawing-cursor-inks!
drawing (list (list cursor1 layout1) (list cursor2 layout2))))
+
+ (set-fix-layout-drawing! layout1 drawing 175 150)
+ (set-fix-layout-drawing! layout2 drawing 175 150)
+ ;; Attach widgets to drawing BEFORE starting blink/spin threads.
(if blink?
(let ((thread (start-blinking drawing)))
(%trace ";cursor blinker: "thread"\n"))
(if spin?
(let ((thread (start-spinning drawing)))
(%trace ";ring spinner: "thread"\n"))
- (%trace ";ring spinning disabled\n"))
- (set-fix-layout-drawing! layout1 drawing 175 150)
- (set-fix-layout-drawing! layout2 drawing 175 150))
+ (%trace ";ring spinning disabled\n")))
(gtk-widget-grab-focus layout1)
(%trace ";created "layout1" and "layout2"\n"))
unspecific)
(%trace2 ";spinning to "width"\n")
(set-arc-ink! arc x y width height)))
(let ((widgets (fix-drawing-widgets drawing)))
- (if (and (not (null? widgets))
- (for-all? widgets gtk-object-destroyed?))
+ (if (null? widgets)
(%trace ";spinning ended\n")
(loop (modulo (fix:1+ frame) frames)))))))))