X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/924b84ab9461c95cf5c5386d1091ae0f7a8e7ce7..ddc5c471d4d8d185e9f2bb9c91c92ddd3a2afff8:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 648c80e2b7..3d4ee35534 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -247,6 +247,14 @@ DEFINE_EVENT_TYPE(wxEVT_SCROLL_THUMBTRACK) DEFINE_EVENT_TYPE(wxEVT_SCROLL_THUMBRELEASE) DEFINE_EVENT_TYPE(wxEVT_SCROLL_CHANGED) +// see comments in wx/event.h, near wxEVT_SCROLL_ENDSCROLL declaration +#if wxCHECK_VERSION(2, 7, 0) + #error "Remove the lines below, not needed any more" +#endif +#undef wxEVT_SCROLL_ENDSCROLL +extern WXDLLIMPEXP_CORE const wxEventType wxEVT_SCROLL_ENDSCROLL; +const wxEventType wxEVT_SCROLL_ENDSCROLL = wxEVT_SCROLL_CHANGED; + // Scroll events from wxWindow DEFINE_EVENT_TYPE(wxEVT_SCROLLWIN_TOP) DEFINE_EVENT_TYPE(wxEVT_SCROLLWIN_BOTTOM) @@ -1081,14 +1089,6 @@ void wxEvtHandler::ClearEventLocker() #endif // wxUSE_THREADS -#if wxUSE_EXCEPTIONS -void wxEvtHandler::DoHandleEvent(wxEventFunction func, wxEvent& event) -{ - // by default, just call then handler - (this->*func)(event); -} -#endif // wxUSE_EXCEPTIONS - void wxEvtHandler::AddPendingEvent(wxEvent& event) { // 1) Add event to list of pending events of this event handler