]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/app.cpp
fixes to radio button handling (patch 803360)
[wxWidgets.git] / src / gtk / app.cpp
index ab2400fc2f728b10aa58bcae780b1b988ecd0f75..21748cb2e9b8dee43e95fe1adeaf2f3fd0425641 100644 (file)
     #pragma implementation "app.h"
 #endif
 
-// For compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
 #ifdef __VMS
-#include <vms_jackets.h>
+// vms_jackets.h should for proper working be included before anything else
+# include <vms_jackets.h>
 #undef ConnectionNumber
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/app.h"
 #include "wx/gdicmn.h"
 #include "wx/utils.h"
@@ -566,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)
@@ -583,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