Commit 57f1a343 authored by twanvl's avatar twanvl

compatibility with wxWdigets 2.9+: use HandleWindowEvent instead of ProcessEvent

parent 3141ab7a
...@@ -97,7 +97,7 @@ void FilterCtrl::setFilter(const String& new_value, bool event) { ...@@ -97,7 +97,7 @@ void FilterCtrl::setFilter(const String& new_value, bool event) {
// send event // send event
if (event) { if (event) {
wxCommandEvent ev(wxEVT_COMMAND_TEXT_UPDATED, GetId()); wxCommandEvent ev(wxEVT_COMMAND_TEXT_UPDATED, GetId());
GetParent()->ProcessEvent(ev); GetParent()->HandleWindowEvent(ev);
} }
} }
...@@ -163,7 +163,7 @@ BEGIN_EVENT_TABLE(FilterCtrl, wxControl) ...@@ -163,7 +163,7 @@ BEGIN_EVENT_TABLE(FilterCtrl, wxControl)
END_EVENT_TABLE() END_EVENT_TABLE()
void TextCtrlWithFocus::forwardEvent(wxFocusEvent& ev) { void TextCtrlWithFocus::forwardEvent(wxFocusEvent& ev) {
GetParent()->ProcessEvent(ev); GetParent()->HandleWindowEvent(ev);
} }
BEGIN_EVENT_TABLE(TextCtrlWithFocus, wxTextCtrl) BEGIN_EVENT_TABLE(TextCtrlWithFocus, wxTextCtrl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment