X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9213ca5d473ff8a25e003e46e7ea7f8520f08fb9..f281f29f89a06dffd4a9357623e4d7a247419dc9:/src/gtk/evtloop.cpp?ds=inline diff --git a/src/gtk/evtloop.cpp b/src/gtk/evtloop.cpp index 74d4132b43..ac59d77edb 100644 --- a/src/gtk/evtloop.cpp +++ b/src/gtk/evtloop.cpp @@ -28,11 +28,8 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#endif //WX_PRECOMP - -#include "wx/app.h" #include "wx/evtloop.h" +#include "wx/app.h" #include @@ -104,17 +101,13 @@ void wxEventLoop::Exit(int rc) // wxEventLoop message processing dispatching // ---------------------------------------------------------------------------- -extern bool g_isIdle; - bool wxEventLoop::Pending() const { - if (wxTheApp && !g_isIdle) + if (wxTheApp) { // We need to remove idle callbacks or gtk_events_pending will // never return false. - gtk_idle_remove( wxTheApp->m_idleTag ); - wxTheApp->m_idleTag = 0; - g_isIdle = TRUE; + wxTheApp->RemoveIdleTag(); } return gtk_events_pending();