]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxEVT_SCROLL_ENDSCROLL a #define in event.h so that new applications
authorMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 30 Jun 2005 00:52:05 +0000 (00:52 +0000)
committerMichael Wetherell <mike.wetherell@ntlworld.com>
Thu, 30 Jun 2005 00:52:05 +0000 (00:52 +0000)
won't depend on it, and so will be compatible with 2.6.1 libs. But still
define and export it in event.cpp so that 2.6.0 apps will be able to use
2.6.1.1 libs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h
src/common/event.cpp

index b46c8fe8f0b779ff4b73c7f3b0edf087926caf3f..6617b829d9ef72b4faaab420c495243db8de129a 100644 (file)
@@ -2819,15 +2819,8 @@ typedef void (wxEvtHandler::*wxMouseCaptureChangedEventFunction)(wxMouseCaptureC
 // present in the source code and macros are enough to maintain source
 // backwards compatibility, but that we have to ensure that we also have
 // wxEVT_SCROLL_ENDSCROLL inside the library for binary backwards compatibility
-// and this can't be done with a macro
-#if wxCHECK_VERSION(2, 7, 0)
-    // replace the line below with simply
-    //      #define wxEVT_SCROLL_ENDSCROLL wxEVT_SCROLL_CHANGED
-    // in 2.7
-    #error "Remove wxEVT_SCROLL_ENDSCROLL binary compatibility hack, not needed"
-#endif
-extern WXDLLIMPEXP_CORE const wxEventType wxEVT_SCROLL_ENDSCROLL;
-
+// and this is done in event.cpp
+#define wxEVT_SCROLL_ENDSCROLL wxEVT_SCROLL_CHANGED
 #define EVT_COMMAND_SCROLL_ENDSCROLL EVT_COMMAND_SCROLL_CHANGED
 #define EVT_SCROLL_ENDSCROLL EVT_SCROLL_CHANGED
 
index 7af4275db209e5ac95d8c87e49d4fb02dedc756d..3d4ee35534e068cd250d6221fd32f00ad6ac13f6 100644 (file)
@@ -249,8 +249,10 @@ 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 line below, not needed any more"
+    #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