X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8e18907799c4b338607b4d57861f97266431b01d..abe2606b703f615dbe96d2d7a54345c0b27b9843:/include/wx/gtk1/spinbutt.h diff --git a/include/wx/gtk1/spinbutt.h b/include/wx/gtk1/spinbutt.h index 4192465863..517d463b55 100644 --- a/include/wx/gtk1/spinbutt.h +++ b/include/wx/gtk1/spinbutt.h @@ -16,6 +16,9 @@ #endif #include "wx/defs.h" + +#ifdef wxUSE_SPINBTN + #include "wx/object.h" #include "wx/control.h" @@ -63,7 +66,7 @@ public: GtkAdjustment *m_adjust; float m_oldPos; - DECLARE_EVENT_TABLE(); + DECLARE_EVENT_TABLE() }; //----------------------------------------------------------------------------- @@ -94,5 +97,7 @@ typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&); { wxEVT_SCROLL_PAGEDOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func },\ { wxEVT_SCROLL_THUMBTRACK, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxSpinEventFunction) & func }, +#endif + #endif // __GTKSPINBUTTH__