From c9c1faa490a451cdf42b35b92bfcc2c55d22bbe9 Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sun, 9 Nov 2008 16:44:56 +0000 Subject: [PATCH] use wxEventType coherently with the docs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/event.h | 6 +++--- src/common/event.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/wx/event.h b/include/wx/event.h index 476ac5b518..23f1f35376 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -2297,21 +2297,21 @@ public: // winid and event type void Connect(int winid, int lastId, - int eventType, + wxEventType eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL); // Convenience function: take just one id void Connect(int winid, - int eventType, + wxEventType eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) { Connect(winid, wxID_ANY, eventType, func, userData, eventSink); } // Even more convenient: without id (same as using id of wxID_ANY) - void Connect(int eventType, + void Connect(wxEventType eventType, wxObjectEventFunction func, wxObject *userData = (wxObject *) NULL, wxEvtHandler *eventSink = (wxEvtHandler *) NULL) diff --git a/src/common/event.cpp b/src/common/event.cpp index c60c8dc265..590c3adf3e 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -1298,7 +1298,7 @@ bool wxEvtHandler::ProcessEvent(wxEvent& event) return true; // propagate the event upwards the window chain and/or to the application - // object if it wasn't processed at this level + // object if it wasn't processed at this level return TryParent(event); } @@ -1383,7 +1383,7 @@ bool wxEvtHandler::SearchEventTable(wxEventTable& table, wxEvent& event) } void wxEvtHandler::Connect( int id, int lastId, - int eventType, + wxEventType eventType, wxObjectEventFunction func, wxObject *userData, wxEvtHandler* eventSink ) -- 2.45.2