gtk_main();
+ OnExit();
+
int exitcode = m_impl->GetExitCode();
delete m_impl;
m_impl = NULL;
{
// We need to remove idle callbacks or gtk_events_pending will
// never return false.
- wxTheApp->RemoveIdleTag();
+ wxTheApp->SuspendIdleCallback();
}
return gtk_events_pending();