summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2016-02-22 18:18:37 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2016-02-29 10:45:12 -0800
commitcbbe237c18a544f2eab9c7d13772fa9a426d0dac (patch)
tree4c3975578a3454469d3c856850b1492b90e0a189 /gtk
parentddb863e523484e3b0520eca48914d5d35b90446c (diff)
downloadgtk+-cbbe237c18a544f2eab9c7d13772fa9a426d0dac.tar.gz
range: remove special case that's not needed
We already set the gadget not to be visible in that case.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkrange.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index d404335c50..2591a4444f 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2269,25 +2269,14 @@ gtk_range_draw (GtkWidget *widget,
GtkRange *range = GTK_RANGE (widget);
GtkRangePrivate *priv = range->priv;
gboolean draw_trough = TRUE;
- gboolean draw_slider = TRUE;
- if (GTK_IS_SCALE (widget) &&
- gtk_adjustment_get_upper (priv->adjustment) == gtk_adjustment_get_lower (priv->adjustment))
- {
- draw_trough = TRUE;
- draw_slider = FALSE;
- }
if (GTK_IS_COLOR_SCALE (widget))
- {
draw_trough = FALSE;
- draw_slider = TRUE;
- }
if (draw_trough)
gtk_css_gadget_draw (priv->trough_gadget, cr);
- if (draw_slider)
- gtk_css_gadget_draw (priv->slider_gadget, cr);
+ gtk_css_gadget_draw (priv->slider_gadget, cr);
if (priv->stepper_a_gadget)
gtk_css_gadget_draw (priv->stepper_a_gadget, cr);