summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorRui Matos <tiagomatos@gmail.com>2011-12-19 15:21:01 +0000
committerRui Matos <tiagomatos@gmail.com>2011-12-19 19:21:16 +0000
commit02dd7df653b05a5913e337290252ac631cd45435 (patch)
tree519fe2a6361a92c46af867215a828300543addd1 /gtk/gtklabel.c
parente3d38708abca61bc9dbd059984d137f44736fce9 (diff)
downloadgtk+-02dd7df653b05a5913e337290252ac631cd45435.tar.gz
label: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 638f999be1..e1ae3d061e 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -4028,13 +4028,12 @@ gtk_label_draw (GtkWidget *widget,
cairo_translate (cr, -allocation.x, -allocation.y);
- state = gtk_widget_get_state_flags (widget);
- gtk_style_context_set_state (context, state);
-
gtk_render_layout (context, cr,
x, y,
priv->layout);
+ state = gtk_widget_get_state_flags (widget);
+
if (info &&
(info->selection_anchor != info->selection_end))
{
@@ -4162,9 +4161,6 @@ gtk_label_draw (GtkWidget *widget,
1);
cairo_region_get_extents (clip, &rect);
- state = gtk_widget_get_state_flags (widget);
- gtk_style_context_set_state (context, state);
-
gtk_render_focus (context, cr,
rect.x, rect.y,
rect.width, rect.height);