projects
/
cl-gtk2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aafe7e8
)
In gtk:ensure-gtk-main restart gtk thread if it is finished
author
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Fri, 12 Jun 2009 20:29:08 +0000
(
00:29
+0400)
committer
Dmitry Kalyanov
<Kalyanov.Dmitry@gmail.com>
Fri, 12 Jun 2009 20:29:08 +0000
(
00:29
+0400)
gtk/gtk.main_loop_events.lisp
patch
|
blob
|
history
diff --git
a/gtk/gtk.main_loop_events.lisp
b/gtk/gtk.main_loop_events.lisp
index
e1756da
..
660bde8
100644
(file)
--- 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"))))