diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-12-21 15:15:10 +0000 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2012-01-09 16:31:11 +0000 |
commit | 95caabac0330d0f6c42114117d08665b0ab4c870 (patch) | |
tree | b47710d96111febb06b7ec6f3107206b66082137 | |
parent | b2f5959147259c3440f3c4dc83b2e3073e47aba3 (diff) | |
download | gtk+-95caabac0330d0f6c42114117d08665b0ab4c870.tar.gz |
scale: Stop setting state flags on the style context for drawing
-rw-r--r-- | gtk/gtkscale.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c index 5ee24e279a..006a8ddd15 100644 --- a/gtk/gtkscale.c +++ b/gtk/gtkscale.c @@ -1085,7 +1085,6 @@ gtk_scale_draw (GtkWidget *widget, GtkScale *scale = GTK_SCALE (widget); GtkScalePrivate *priv = scale->priv; GtkRange *range = GTK_RANGE (scale); - GtkStateFlags state = 0; GtkStyleContext *context; gint *marks; gint focus_padding; @@ -1105,9 +1104,6 @@ gtk_scale_draw (GtkWidget *widget, */ GTK_WIDGET_CLASS (gtk_scale_parent_class)->draw (widget, cr); - if (!gtk_widget_is_sensitive (widget)) - state |= GTK_STATE_FLAG_INSENSITIVE; - if (priv->marks) { GtkOrientation orientation; @@ -1151,7 +1147,6 @@ gtk_scale_draw (GtkWidget *widget, gtk_style_context_save (context); gtk_style_context_add_class (context, GTK_STYLE_CLASS_MARK); - gtk_style_context_set_state (context, state); gtk_render_line (context, cr, x1, y1, x1, y2); @@ -1203,7 +1198,6 @@ gtk_scale_draw (GtkWidget *widget, gtk_style_context_save (context); gtk_style_context_add_class (context, GTK_STYLE_CLASS_MARK); - gtk_style_context_set_state (context, state); gtk_render_line (context, cr, x1, y1, x2, y1); |