X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ec758a20a2b166b2073e1c902cc745db01290f02..b46e869676813430c8fbf0d5828005f1b898d985:/src/gtk/app.cpp diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 631a12eff8..630733a3ae 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -4,7 +4,7 @@ // Author: Robert Roebling // Id: $Id$ // Copyright: (c) 1998 Robert Roebling, Julian Smart -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -21,6 +21,7 @@ #include "wx/settings.h" #include "wx/resource.h" #include "wx/module.h" +#include "wx/image.h" #include "unistd.h" @@ -212,8 +213,8 @@ bool wxApp::SendIdleEvents(void) wxNode* node = wxTopLevelWindows.First(); while (node) { - wxWindow* win = (wxWindow*) node->Data(); - if (SendIdleEvents(win)) + wxWindow* win = (wxWindow*) node->Data(); + if (SendIdleEvents(win)) needMore = TRUE; node = node->Next(); } @@ -224,22 +225,22 @@ bool wxApp::SendIdleEvents( wxWindow* win ) { bool needMore = FALSE; - wxIdleEvent event; - event.SetEventObject(win); - win->ProcessEvent(event); + wxIdleEvent event; + event.SetEventObject(win); + win->ProcessEvent(event); if (event.MoreRequested()) needMore = TRUE; - wxNode* node = win->GetChildren()->First(); - while (node) - { - wxWindow* win = (wxWindow*) node->Data(); - if (SendIdleEvents(win)) + wxNode* node = win->GetChildren().First(); + while (node) + { + wxWindow* win = (wxWindow*) node->Data(); + if (SendIdleEvents(win)) needMore = TRUE; - node = node->Next(); - } + node = node->Next(); + } return needMore ; }