From 3baba4c60db58ad50a939094f0dc5951c5ee1704 Mon Sep 17 00:00:00 2001 From: Kevin Hock Date: Sat, 22 Jan 2005 13:48:38 +0000 Subject: [PATCH] gtk_range_set_inverted only available on GTK2 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/slider.cpp | 2 ++ src/gtk1/slider.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index dc5fdec645..93ec5c8fff 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -132,8 +132,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(); diff --git a/src/gtk1/slider.cpp b/src/gtk1/slider.cpp index dc5fdec645..93ec5c8fff 100644 --- a/src/gtk1/slider.cpp +++ b/src/gtk1/slider.cpp @@ -132,8 +132,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(); -- 2.45.2