X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d24b23b76eca69c0faecf6146f52f6d8f93d4b78..a57ac1c418349c0d918588e456e0c8dad00f8eb8:/src/gtk1/app.cpp?ds=sidebyside diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 8932e2198d..a75aabe611 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -136,9 +136,11 @@ bool wxApp::Yield(bool onlyIfNeeded) // never finish. wxTheApp->RemoveIdleTag(); +#if wxUSE_LOG // disable log flushing from here because a call to wxYield() shouldn't // normally result in message boxes popping up &c wxLog::Suspend(); +#endif while (gtk_events_pending()) gtk_main_iteration(); @@ -151,8 +153,10 @@ bool wxApp::Yield(bool onlyIfNeeded) // return value of Processidle(). ProcessIdle(); +#if wxUSE_LOG // let the logs be flashed again wxLog::Resume(); +#endif wxIsInsideYield = FALSE; @@ -612,6 +616,7 @@ bool wxApp::Initialize(int& argc, wxChar **argv) // (1) this variable exists for the sole purpose of specifying the encoding // of the filenames for GTK+ programs, so use it if it is set wxString encName(wxGetenv(_T("G_FILENAME_ENCODING"))); + encName = encName.BeforeFirst(_T(',')); if (encName == _T("@locale")) encName.clear(); encName.MakeUpper();