X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e219378a3ba79a11564f291039f47ce651c2f3e..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/gtk/slider.cpp diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index dc5fdec645..c5d5be31fe 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -41,6 +41,7 @@ static const float sensitivity = 0.02; // "value_changed" //----------------------------------------------------------------------------- +extern "C" { static void gtk_slider_callback( GtkAdjustment *adjust, SCROLLBAR_CBACK_ARG wxSlider *win ) @@ -72,6 +73,7 @@ static void gtk_slider_callback( GtkAdjustment *adjust, cevent.SetInt( value ); win->GetEventHandler()->ProcessEvent( cevent ); } +} //----------------------------------------------------------------------------- // wxSlider @@ -132,8 +134,10 @@ 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();