[gtk+] scale: Stop setting state flags on the style context for drawing
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] scale: Stop setting state flags on the style context for drawing
- Date: Mon, 9 Jan 2012 16:56:16 +0000 (UTC)
commit 95caabac0330d0f6c42114117d08665b0ab4c870
Author: Rui Matos <tiagomatos gmail com>
Date: Wed Dec 21 15:15:10 2011 +0000
scale: Stop setting state flags on the style context for drawing
gtk/gtkscale.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 5ee24e2..006a8dd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]