]> 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 7df0bb49a26f46d86faeb5142c87e4ec45ff01f6..21748cb2e9b8dee43e95fe1adeaf2f3fd0425641 100644 (file)
@@ -7,15 +7,19 @@
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "app.h"
 #endif
 
 #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"
@@ -563,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)
@@ -580,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