On Tue, May 04, 2004 at 05:20:00PM -0400, Steve McClure wrote:
> FAQ item 20.8 applies only to 2.X right?  gtk.threads_init() doesn't
> seem to be wrapped in 0.6.X and it looks to me like the thread
> initialization will be done in the C module code.

Yes, it will. If you look at the module initialization function, it
calls a g_thread_init() if threading was compiled in. However, you can
call gtk._disable_gtk_threading() if you'd like to disable the threading
lock.

> I've never had success using gtk.threads_enter() and threads_leave() and
> have had to resort to making sure all GTK code is in the main thread.

Are you sure your module has been compiled with threading?

[EMAIL PROTECTED]:~/devel/gnome/pygtk-0.6$ ldd _gtkmodule.so 
libgtk-1.2.so.0 => /usr/lib/libgtk-1.2.so.0 (0x40069000)
libgdk-1.2.so.0 => /usr/lib/libgdk-1.2.so.0 (0x4018e000)
libgmodule-1.2.so.0 => /usr/lib/libgmodule-1.2.so.0 (0x401c3000)
libgthread-1.2.so.0 => /usr/lib/libgthread-1.2.so.0 (0x401c6000)
libglib-1.2.so.0 => /usr/lib/libglib-1.2.so.0 (0x401c9000)
libpthread.so.0 => /lib/libpthread.so.0 (0x401ec000)
libdl.so.2 => /lib/libdl.so.2 (0x40200000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40203000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4020b000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40218000)
libm.so.6 => /lib/libm.so.6 (0x402f3000)
libc.so.6 => /lib/libc.so.6 (0x40314000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)


Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 261 2331
_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to