]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
Added a border around dialogs. Has anyone got a better solution?
[wxWidgets.git] / src / motif / slider.cpp
index 5d3d92125ef2dbef5a90812ebfc8d6cf4f734ead..2ea8f37e36fc78dc0ee6a73610fe91154cc7ad2e 100644 (file)
@@ -22,7 +22,7 @@
 #include <Xm/RowColumn.h>
 #include <Xm/Scale.h>
 
-#include <wx/motif/private.h>
+#include "wx/motif/private.h"
 
 void wxSliderCallback (Widget widget, XtPointer clientData, XmScaleCallbackStruct * cbs);
 
@@ -51,7 +51,10 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
                       const wxSize& size, long style,
                       const wxValidator& validator,
                       const wxString& name)
-{
+{    
+    if ( !((style & wxSL_HORIZONTAL) || (style & wxSL_VERTICAL)) )
+         style |= wxSL_HORIZONTAL;
+    
     SetName(name);
     SetValidator(validator);
     m_backgroundColour = parent->GetBackgroundColour();
@@ -171,7 +174,7 @@ void wxSlider::SetRange(int minValue, int maxValue)
 }
 
 // For trackbars only
-void wxSlider::SetTickFreq(int n, int pos)
+void wxSlider::SetTickFreq(int n, int WXUNUSED(pos))
 {
     // Not implemented in Motif
     m_tickFreq = n;