]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
documented how to handle C++ exceptions in wxWindows
[wxWidgets.git] / src / gtk / app.cpp
index dad9249bc9287f200a3cc43b70979b6521b6fc34..21748cb2e9b8dee43e95fe1adeaf2f3fd0425641 100644 (file)
@@ -567,9 +567,11 @@ bool wxApp::Pending()
     return (gtk_events_pending() > 0);
 }
 
-void wxApp::Dispatch()
+bool wxApp::Dispatch()
 {
     gtk_main_iteration();
+
+    return true;
 }
 
 bool wxApp::Initialize(int& argc, wxChar **argv)
@@ -584,7 +586,8 @@ bool wxApp::Initialize(int& argc, wxChar **argv)
     }
     else
     {
-        g_thread_init(NULL);
+        if (!g_thread_supported())
+            g_thread_init(NULL);
     }
 #endif // wxUSE_THREADS