[gtk+] label: 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+] label: Stop setting state flags on the style context for drawing
- Date: Mon, 19 Dec 2011 19:24:43 +0000 (UTC)
commit 02dd7df653b05a5913e337290252ac631cd45435
Author: Rui Matos <tiagomatos gmail com>
Date: Mon Dec 19 15:21:01 2011 +0000
label: Stop setting state flags on the style context for drawing
gtk/gtklabel.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 638f999..e1ae3d0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]