Am Montag, den 01.02.2010, 10:52 -0800 schrieb Brandon Lewis:
> Wow, thanks for the hint. Do I need to call gtk.gdk.threads_init() in 
> addition to calling gobject.threads_init()? Or does 
> gtk.gdk.threads_init() also call the gobject routine?

That's a good question... I'm not that firm with GTK/PyGTK. The GTK+
reference (C) reads:

        Initializes GDK so that it can be used from multiple threads in
        conjunction with gdk_threads_enter() and gdk_threads_leave().
        g_thread_init() must be called previous to this function.
        

(http://library.gnome.org/devel/gdk/stable/gdk-Threads.html#gdk-threads-init)

In contrast the PyGTK reference doesn't say anything about it
(http://library.gnome.org/devel/pygtk/stable/gdk-functions.html#function-gdk--threads-init).

My guess is that it doesn't hurt to call it explicitly :-)

Tomas




------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Pitivi-pitivi mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pitivi-pitivi

Reply via email to