From: Robert Roebling Date: Sat, 14 Nov 2009 16:34:56 +0000 (+0000) Subject: Always position value lable left of a vertical slider X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3312ee03a7b1b378a880d5ace627f937f9cc6a72?ds=inline Always position value lable left of a vertical slider git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/slider.cpp b/src/gtk/slider.cpp index 74e0647eca..a0998bc13b 100644 --- a/src/gtk/slider.cpp +++ b/src/gtk/slider.cpp @@ -357,10 +357,13 @@ bool wxSlider::Create(wxWindow *parent, m_minLabel = NULL; } - gtk_scale_set_draw_value(GTK_SCALE (m_scale), (style & wxSL_VALUE_LABEL) != 0); + if (style & wxSL_VALUE_LABEL) + { + gtk_scale_set_draw_value(GTK_SCALE (m_scale), TRUE ); - if ((style & wxSL_MIN_MAX_LABELS) && (style & wxSL_VERTICAL)) - gtk_scale_set_value_pos( GTK_SCALE(m_scale), GTK_POS_LEFT ); + if (style & wxSL_VERTICAL) + gtk_scale_set_value_pos( GTK_SCALE(m_scale), GTK_POS_LEFT ); + } // Keep full precision in position value gtk_scale_set_digits(GTK_SCALE (m_scale), -1);