]> git.saurik.com Git - wxWidgets.git/commitdiff
Pass events to pushed event handlers.
authorMattia Barbon <mbarbon@cpan.org>
Sun, 4 May 2003 12:17:15 +0000 (12:17 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 4 May 2003 12:17:15 +0000 (12:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/motif/app.cpp
src/motif/evtloop.cpp

index 1dce3f1186a84fd6decda4f2e2684442f4bb6cb1..3fcf24b91036ae05716f5c79ce7074407e3d2f6e 100644 (file)
@@ -414,7 +414,7 @@ bool wxApp::SendIdleEvents(wxWindow* win)
 
     wxIdleEvent event;
     event.SetEventObject(win);
-    win->ProcessEvent(event);
+    win->GetEventHandler()->ProcessEvent(event);
 
     if (event.MoreRequested())
         needMore = TRUE;
index f5f5e000df888c6f56c452d4c5f65b9e789f0cbc..d4b150cddbd96d483959337108e4ebc8d8499270 100644 (file)
@@ -308,7 +308,7 @@ bool CheckForKeyDown(XEvent* event)
         wxKeyEvent keyEvent(wxEVT_KEY_DOWN);
         wxTranslateKeyEvent(keyEvent, win, (Widget) 0, event);
 
-        return win->ProcessEvent( keyEvent );
+        return win->GetEventHandler()->ProcessEvent( keyEvent );
     }
 
     return false;
@@ -334,7 +334,7 @@ bool CheckForKeyUp(XEvent* event)
         wxKeyEvent keyEvent(wxEVT_KEY_UP);
         wxTranslateKeyEvent(keyEvent, win, (Widget) 0, event);
 
-        return win->ProcessEvent( keyEvent );
+        return win->GetEventHandler()->ProcessEvent( keyEvent );
     }
 
     return false;