X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9213ca5d473ff8a25e003e46e7ea7f8520f08fb9..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/gtk1/evtloop.cpp?ds=sidebyside diff --git a/src/gtk1/evtloop.cpp b/src/gtk1/evtloop.cpp index 74d4132b43..ac59d77edb 100644 --- a/src/gtk1/evtloop.cpp +++ b/src/gtk1/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();