]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/evtloop.cpp
Fixed premature exit of helpview sample and utility
[wxWidgets.git] / src / gtk / evtloop.cpp
index fbdd81bd2d9f308df2694adc338d257141e53439..2b2bfa91c4f4c7c6a051e6e4f09f524e0d8ca4c0 100644 (file)
@@ -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();