From: Václav Slavík Date: Sat, 3 Sep 2011 13:14:31 +0000 (+0000) Subject: Use ProcessWindowEvent() in generic wxDataViewCtrl code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/857f05e1bf227897a57641d721d9ead5cb55c3f6?ds=inline Use ProcessWindowEvent() in generic wxDataViewCtrl code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index e0ea954548..5850e4a00d 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -169,7 +169,7 @@ private: // for events created by wxDataViewHeaderWindow the // row / value fields are not valid - return owner->GetEventHandler()->ProcessEvent(event); + return owner->ProcessWindowEvent(event); } void OnClick(wxHeaderCtrlEvent& event) @@ -2196,7 +2196,7 @@ bool wxDataViewMainWindow::ItemChanged(const wxDataViewItem & item) le.SetEventObject(parent); le.SetModel(GetModel()); le.SetItem(item); - parent->GetEventHandler()->ProcessEvent(le); + parent->ProcessWindowEvent(le); return true; } @@ -2239,7 +2239,7 @@ bool wxDataViewMainWindow::ValueChanged( const wxDataViewItem & item, unsigned i le.SetItem(item); le.SetColumn(view_column); le.SetDataViewColumn(GetOwner()->GetColumn(view_column)); - parent->GetEventHandler()->ProcessEvent(le); + parent->ProcessWindowEvent(le); return true; } @@ -2508,7 +2508,7 @@ void wxDataViewMainWindow::SendSelectionChangedEvent( const wxDataViewItem& item le.SetModel(GetModel()); le.SetItem( item ); - parent->GetEventHandler()->ProcessEvent(le); + parent->ProcessWindowEvent(le); } void wxDataViewMainWindow::RefreshRow( unsigned int row ) @@ -3288,7 +3288,7 @@ void wxDataViewMainWindow::OnChar( wxKeyEvent &event ) le.SetEventObject(parent); le.SetModel(GetModel()); - if ( parent->GetEventHandler()->ProcessEvent(le) ) + if ( parent->ProcessWindowEvent(le) ) break; // else: fall through to WXK_SPACE handling } @@ -3692,7 +3692,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) le.SetEventObject(parent); le.SetModel(GetModel()); - parent->GetEventHandler()->ProcessEvent(le); + parent->ProcessWindowEvent(le); } return; } @@ -3766,7 +3766,7 @@ void wxDataViewMainWindow::OnMouse( wxMouseEvent &event ) le.SetEventObject(parent); le.SetModel(GetModel()); le.SetValue(value); - parent->GetEventHandler()->ProcessEvent(le); + parent->ProcessWindowEvent(le); } else if (event.MiddleDown()) {