On Mon, Feb 09, 2004 at 10:05:49AM -0800, Jeff Bowden wrote: > John K Luebs wrote: > > >Interestingly, if we substitute "Timeout, input, and idle handlers" in > >place of "Signal callbacks" the statement becomes correct. As long as > >you only call mainloop in the main thread, those glib handlers will only > >be called in the main thread, additionally, those handlers must > >acquire the gtk lock if they are going to call gtk. > > > > > > If you only call mainloop in the main thread and you only do gtk things > in the main thread, why would you need to acquire the gtk lock to do > things in TImeout, input and idle handlers which only get called by the > main thread?
Given the constraint that you only call gtk from one thread you would not need to lock. The FAQ entry was suggesting that you would call gtk from other threads. In this case you must lock in the glib handlers. --jkl _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
