From: Dmitry Kalyanov Date: Fri, 12 Jun 2009 20:29:08 +0000 (+0400) Subject: In gtk:ensure-gtk-main restart gtk thread if it is finished X-Git-Url: http://repo.macrolet.net/gitweb/?a=commitdiff_plain;h=64cc0a46c3dd2bce1b3ea0158e1dc0c35750d0b5;p=cl-gtk2.git In gtk:ensure-gtk-main restart gtk thread if it is finished --- diff --git a/gtk/gtk.main_loop_events.lisp b/gtk/gtk.main_loop_events.lisp index e1756da..660bde8 100644 --- a/gtk/gtk.main_loop_events.lisp +++ b/gtk/gtk.main_loop_events.lisp @@ -32,6 +32,8 @@ #+thread-support (defun ensure-gtk-main () + (when (and *main-thread* (not (bt:thread-alive-p *main-thread*))) + (setf *main-thread* nil)) (unless *main-thread* (setf *main-thread* (bt:make-thread (lambda () (gtk:gtk-main)) :name "cl-gtk2 main thread"))))