From: Robert Roebling Date: Tue, 16 Apr 2002 18:18:42 +0000 (+0000) Subject: Untested mini-change for wxGTK idle handling. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5d91e653c5f2683eb21485d6b5c1e5f286ab5e11 Untested mini-change for wxGTK idle handling. Handle internal idle (i.e. update handing) *after* sending idle events so that if the user calls Refresh() in OnIdle() the regions will be updated afterwards. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/app.cpp b/src/gtk/app.cpp index 20050e11b6..43d42a540f 100644 --- a/src/gtk/app.cpp +++ b/src/gtk/app.cpp @@ -501,8 +501,6 @@ bool wxApp::SendIdleEvents( wxWindow* win ) win->GetEventHandler()->ProcessEvent(event); - win->OnInternalIdle(); - if (event.MoreRequested()) needMore = TRUE; @@ -516,6 +514,8 @@ bool wxApp::SendIdleEvents( wxWindow* win ) node = node->Next(); } + win->OnInternalIdle(); + return needMore; } diff --git a/src/gtk1/app.cpp b/src/gtk1/app.cpp index 20050e11b6..43d42a540f 100644 --- a/src/gtk1/app.cpp +++ b/src/gtk1/app.cpp @@ -501,8 +501,6 @@ bool wxApp::SendIdleEvents( wxWindow* win ) win->GetEventHandler()->ProcessEvent(event); - win->OnInternalIdle(); - if (event.MoreRequested()) needMore = TRUE; @@ -516,6 +514,8 @@ bool wxApp::SendIdleEvents( wxWindow* win ) node = node->Next(); } + win->OnInternalIdle(); + return needMore; }