X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab9a53699b34bd9f4a4934fd1f6c9c4c78f6599..8a7fc9b5a79fbfe7a5e3c224fc41aad98e2eb17d:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 9f3abf88b9..987ce870f2 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -74,6 +74,7 @@ #include "wx/unix/private.h" #include "wx/gtk/win_gtk.h" +#include "wx/gtk/private.h" #include @@ -90,8 +91,6 @@ static GtkWidget *gs_RootWindow = (GtkWidget*) NULL; // idle system //----------------------------------------------------------------------------- -extern bool g_isIdle; - void wxapp_install_idle_handler(); #if wxUSE_THREADS @@ -249,11 +248,11 @@ static gint wxapp_idle_callback( gpointer WXUNUSED(data) ) wxTheApp->m_idleTag = 0; } - bool moreIdles = false; + bool moreIdles; // Send idle event to all who request them as long as // no events have popped up in the event queue. - while (moreIdles = wxTheApp->ProcessIdle() && (gtk_events_pending() == 0)) + while ( (moreIdles = wxTheApp->ProcessIdle()) && gtk_events_pending() == 0) ; // Release lock again