Of course the easy way to to go back from a thread and run something
in the main gui thread is to use timeout-add directly and let it run
with no timeout and only once, like:

(defmacro run-in-main (&body body)
  `(gtk-ffi:with-gdk-threads 
       (cgtk:timeout-add 0 (lambda ()
                             ,@body
                             nil  #|"only once"|#))))


_______________________________________________
cells-gtk-devel site list
cells-gtk-devel@common-lisp.net
http://common-lisp.net/mailman/listinfo/cells-gtk-devel

Reply via email to