Add support for wxSL_INVERSE using gtk_range_set_inverted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -132,6 +132,9 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
m_adjust = gtk_range_get_adjustment( GTK_RANGE(m_widget) );
|
||||
|
||||
if (style & wxSL_INVERSE)
|
||||
gtk_range_set_inverted( GTK_RANGE(m_widget), TRUE );
|
||||
|
||||
GtkEnableEvents();
|
||||
|
||||
SetRange( minValue, maxValue );
|
||||
|
@@ -132,6 +132,9 @@ bool wxSlider::Create(wxWindow *parent, wxWindowID id,
|
||||
|
||||
m_adjust = gtk_range_get_adjustment( GTK_RANGE(m_widget) );
|
||||
|
||||
if (style & wxSL_INVERSE)
|
||||
gtk_range_set_inverted( GTK_RANGE(m_widget), TRUE );
|
||||
|
||||
GtkEnableEvents();
|
||||
|
||||
SetRange( minValue, maxValue );
|
||||
|
Reference in New Issue
Block a user