]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/slider.cpp
fixed loop deleting the old filters in SetWildcard() after last commit
[wxWidgets.git] / src / gtk / slider.cpp
index bcd260ad6eeeb5c596cdec3f70099a5311205d04..93ec5c8fffc9e3ae2340df3aa0dd518688f1495c 100644 (file)
@@ -19,9 +19,7 @@
 #if wxUSE_SLIDER
 
 #include "wx/utils.h"
-
-#include <math.h>
-
+#include "wx/math.h"
 #include "wx/gtk/private.h"
 
 //-----------------------------------------------------------------------------
@@ -134,6 +132,11 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
 
     m_adjust = gtk_range_get_adjustment( GTK_RANGE(m_widget) );
 
+#ifdef __WXGTK20__
+    if (style & wxSL_INVERSE)
+        gtk_range_set_inverted( GTK_RANGE(m_widget), TRUE );
+#endif
+
     GtkEnableEvents();
 
     SetRange( minValue, maxValue );