X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a378a9e16fd9540aaf4572cdae5ae425f8b44d5..20c81bed846981e90769826b94a91eebb91158f1:/src/gtk/evtloop.cpp diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index fbdd81bd2d..2b2bfa91c4 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -75,6 +75,8 @@ int wxEventLoop::Run() gtk_main(); + OnExit(); + int exitcode = m_impl->GetExitCode(); delete m_impl; m_impl = NULL; @@ -101,7 +103,7 @@ bool wxEventLoop::Pending() const { // We need to remove idle callbacks or gtk_events_pending will // never return false. - wxTheApp->RemoveIdleSource(); + wxTheApp->SuspendIdleCallback(); } return gtk_events_pending();