]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/slider.cpp
Motif: made file selector and message box properly take on background colour.
[wxWidgets.git] / src / motif / slider.cpp
index 5d3d92125ef2dbef5a90812ebfc8d6cf4f734ead..5a141dc7cb07c5c1e2ea21cf8877adb6fee2bcda 100644 (file)
@@ -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;