X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/956dbab1eb04b32a006303df25fd05116eb5ef11..483c6690e98d6ad41b37f02d29b63a26b68a07c0:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index a81c4dd205..2bce90acab 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -414,14 +414,6 @@ bool wxApp::ProcessIdle() event.SetEventObject( this ); ProcessEvent( event ); - wxWindowList::Node* node = wxTopLevelWindows.GetFirst(); - while (node) - { - wxWindow* win = node->GetData(); - win->OnInternalIdle(); - node = node->GetNext(); - } - return event.MoreRequested(); } @@ -485,6 +477,8 @@ bool wxApp::SendIdleEvents( wxWindow* win ) win->ProcessEvent(event); + win->OnInternalIdle(); + if (event.MoreRequested()) needMore = TRUE; @@ -593,8 +587,6 @@ bool wxApp::Initialize() wxInitializeResourceSystem(); #endif - wxImage::InitStandardHandlers(); - wxModule::RegisterModules(); if (!wxModule::InitializeModules()) return FALSE; @@ -628,8 +620,6 @@ void wxApp::CleanUp() wxDeleteStockLists(); - wxImage::CleanUpHandlers(); - delete wxTheApp; wxTheApp = (wxApp*) NULL; @@ -675,7 +665,11 @@ int wxEntry( int argc, char *argv[] ) { gtk_set_locale(); +#if wxUSE_WCHAR_T if (!wxOKlibc()) wxConvCurrent = &wxConvLocal; +#else + if (!wxOKlibc()) wxConvCurrent = (wxMBConv*) NULL; +#endif gtk_init( &argc, &argv );