#pragma hdrstop
#endif
-#ifndef WX_PRECOMP
-#endif //WX_PRECOMP
-
#include "wx/evtloop.h"
+#include "wx/app.h"
#include <gtk/gtk.h>
bool wxEventLoop::Pending() const
{
- return gtk_events_pending() > 0;
+ if (wxTheApp)
+ {
+ // We need to remove idle callbacks or gtk_events_pending will
+ // never return false.
+ wxTheApp->RemoveIdleTag();
+ }
+
+ return gtk_events_pending();
}
bool wxEventLoop::Dispatch()