X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/105fbe1ffa8968cb85fd2cac7192957e522d17ba..68ca12fef650ce4622e05ba4eb21a7aa23849107:/src/motif/mdi.cpp?ds=sidebyside diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index fe31aa958a..2f18487ea4 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -238,7 +238,7 @@ bool wxMDIParentFrame::ProcessEvent(wxEvent& event) bool res = false; if (m_activeChild && event.IsKindOf(CLASSINFO(wxCommandEvent))) { - res = m_activeChild->GetEventHandler()->ProcessEvent(event); + res = m_activeChild->HandleWindowEvent(event); } if (!res) @@ -365,7 +365,7 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } // This is the currently active child @@ -460,12 +460,12 @@ void wxMDIChildFrame::OnRaise() { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } wxActivateEvent event(wxEVT_ACTIVATE, true, this->GetId()); event.SetEventObject( this ); - this->GetEventHandler()->ProcessEvent(event); + this->HandleWindowEvent(event); } void wxMDIChildFrame::OnLower() @@ -477,7 +477,7 @@ void wxMDIChildFrame::OnLower() { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } // TODO: unfortunately we don't now know which is the top-most child, // so make the active child NULL. @@ -697,7 +697,7 @@ void wxMDIClientWindow::OnPageChanged(wxNotebookEvent& event) { wxActivateEvent event(wxEVT_ACTIVATE, false, oldChild->GetId()); event.SetEventObject( oldChild ); - oldChild->GetEventHandler()->ProcessEvent(event); + oldChild->HandleWindowEvent(event); } } if (event.GetSelection() != -1) @@ -707,7 +707,7 @@ void wxMDIClientWindow::OnPageChanged(wxNotebookEvent& event) { wxActivateEvent event(wxEVT_ACTIVATE, true, activeChild->GetId()); event.SetEventObject( activeChild ); - activeChild->GetEventHandler()->ProcessEvent(event); + activeChild->HandleWindowEvent(event); if (activeChild->GetMDIParentFrame()) {