]> git.saurik.com Git - wxWidgets.git/commitdiff
Untested mini-change for wxGTK idle handling.
authorRobert Roebling <robert@roebling.de>
Tue, 16 Apr 2002 18:18:42 +0000 (18:18 +0000)
committerRobert Roebling <robert@roebling.de>
Tue, 16 Apr 2002 18:18:42 +0000 (18:18 +0000)
    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

src/gtk/app.cpp
src/gtk1/app.cpp

index 20050e11b609230f04ae803efd256a6699c72b11..43d42a540f3b96bd3c0788141d24415f83509328 100644 (file)
@@ -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;
 }
 
index 20050e11b609230f04ae803efd256a6699c72b11..43d42a540f3b96bd3c0788141d24415f83509328 100644 (file)
@@ -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;
 }