Only initialise threads if they aren't already initialised.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 11 Oct 2007 16:32:21 +0000 (16:32 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Thu, 11 Oct 2007 16:32:21 +0000 (16:32 +0000)
git-svn-id: http://svn.voria.com/code@908 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/app.cpp

index 5b4b54b..0c2bd84 100644 (file)
@@ -1103,7 +1103,10 @@ App::App(int *argc, char ***argv):
 
        gdk_rgb_init();
 
-       Glib::thread_init();
+       // don't call thread_init() if threads are already initialised
+       // on some machines bonobo_init() initialised threads before we get here
+       if (!g_thread_supported())
+               Glib::thread_init();
 
        distance_system=Distance::SYSTEM_UNITS;