X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/955a919785b76a1826e6b8d55f696a0dfb62a318..6f054ac5e8f4d9daf9f4d7fabfa285cb7b148d17:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 7df0bb49a2..21748cb2e9 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -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 should for proper working be included before anything else +# include #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