]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
Misc. Dialog Editor/resource bugs fixed
[wxWidgets.git] / src / gtk / app.cpp
index c0004485a60b90465f7fcacbcfa0540f71f43ad7..115d743eae8e864d275c1a44e6462b25757e74d2 100644 (file)
@@ -558,7 +558,17 @@ void wxApp::CleanUp()
 int wxEntry( int argc, char *argv[] )
 {
 #if wxUSE_THREADS
-    g_thread_init(NULL);
+    /* GTK 1.2 up to version 1.2.3 has broken threads */
+    if ((gtk_major_version == 1) &&
+        (gtk_minor_version == 2) &&
+           (gtk_micro_version < 4))
+    {
+        printf( "wxWindows warning: Disabled GUI threading due to outdated GTK version\n" );
+    }
+    else
+    {
+        g_thread_init(NULL);
+    }
 #endif
     
     gtk_set_locale();