X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5d9d1b88100b11e56f66d0e7cd955adbc17a40fd..9c43d88f6d47342edafa8b5e502e33a7ce2b6d98:/src/common/event.cpp diff --git a/src/common/event.cpp b/src/common/event.cpp index 5f24b7489f..3d4ee35534 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -245,7 +245,15 @@ DEFINE_EVENT_TYPE(wxEVT_SCROLL_PAGEUP) DEFINE_EVENT_TYPE(wxEVT_SCROLL_PAGEDOWN) DEFINE_EVENT_TYPE(wxEVT_SCROLL_THUMBTRACK) DEFINE_EVENT_TYPE(wxEVT_SCROLL_THUMBRELEASE) -DEFINE_EVENT_TYPE(wxEVT_SCROLL_ENDSCROLL) +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)