]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
allow a - at the beginning of a menu item (would become a separator by default)
[wxWidgets.git] / src / motif / slider.cpp
index 0cf3134f88cea3bce325046c1ddc05b91731cf2a..e11f1bb9ceb0146f805369b98800f332c8d7bec2 100644 (file)
@@ -9,10 +9,13 @@
 // Licence:    wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma implementation "slider.h"
 #endif
 
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
 #include "wx/slider.h"
 #include "wx/utils.h"
 
@@ -104,7 +107,6 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
     XtAddCallback (sliderWidget, XmNdragCallback, (XtCallbackProc) wxSliderCallback, (XtPointer) this);
 
     ChangeFont(FALSE);
-    SetCanAddEventHandler(TRUE);
     AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y);
 
     ChangeBackgroundColour();