From e10333c5709c495f1cb1f10d06aab3012b0dbc17 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 11 Oct 2007 16:32:21 +0000 Subject: [PATCH] Only initialise threads if they aren't already initialised. git-svn-id: http://svn.voria.com/code@908 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/app.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 5b4b54b..0c2bd84 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -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; -- 2.7.4