X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f3858bf5614fae70f1cdc11e5f187691ef2a4c4a..6f054ac5e8f4d9daf9f4d7fabfa285cb7b148d17:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index dad9249bc9..21748cb2e9 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -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