From b7245f129a1d9bf8976144df02c66bb42a5c4fcc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Jan 2001 22:26:45 +0000 Subject: [PATCH] compilation fix for recent event changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/spinbutt.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/include/wx/spinbutt.h b/include/wx/spinbutt.h index 5df76fb0a3..76a7b8b187 100644 --- a/include/wx/spinbutt.h +++ b/include/wx/spinbutt.h @@ -113,18 +113,12 @@ public: typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&); // macros for handling spin events -#ifndef EVT_SPIN_UP #define EVT_SPIN_UP(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_LINEUP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif -#ifndef EVT_SPIN_DOWN + wxEventTableEntry( wxEVT_SCROLL_LINEUP, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #define EVT_SPIN_DOWN(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_LINEDOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif -#ifndef EVT_SPIN + wxEventTableEntry( wxEVT_SCROLL_LINEDOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #define EVT_SPIN(id, func) \ - wxEventTableEntry( wxEVT_SCROLL_THUMBTRACK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func ), -#endif + wxEventTableEntry( wxEVT_SCROLL_THUMBTRACK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func, NULL ), #endif // wxUSE_SPINBTN -- 2.50.0