Wrap gtk-main in Gdk threads lock in unithreaded lisps too
authorDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Tue, 12 Jan 2010 10:46:16 +0000 (13:46 +0300)
committerDmitry Kalyanov <Kalyanov.Dmitry@gmail.com>
Tue, 12 Jan 2010 10:46:16 +0000 (13:46 +0300)
gtk/gtk.main_loop_events.lisp

index b26f147..6b5b9eb 100644 (file)
 
 (defcfun (%gtk-main "gtk_main") :void)
 
-#+thread-support
 (defun gtk-main ()
   (with-gdk-threads-lock (%gtk-main)))
 
-#-thread-support
-(defun gtk-main ()
-  (%gtk-main))
-
 #+thread-support
 (defvar *main-thread* nil)