[gtk+/wip/unfocused-fixes: 4/13] arrow: 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+/wip/unfocused-fixes: 4/13] arrow: Stop setting state flags on the style context for drawing
- Date: Sat, 17 Dec 2011 17:21:23 +0000 (UTC)
commit 570ca5484c505f6ec36dae5b5012e32f3d283ef4
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Dec 15 01:35:01 2011 +0000
arrow: Stop setting state flags on the style context for drawing
gtk/gtkarrow.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 0df37be..e3dde7c 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -315,7 +315,6 @@ gtk_arrow_draw (GtkWidget *widget,
GtkArrowPrivate *priv = arrow->priv;
GtkMisc *misc = GTK_MISC (widget);
GtkStyleContext *context;
- GtkStateFlags state;
gdouble x, y;
gint width, height;
gint extent;
@@ -369,13 +368,7 @@ gtk_arrow_draw (GtkWidget *widget,
break;
}
- gtk_style_context_save (context);
-
- state = gtk_widget_get_state_flags (widget);
- gtk_style_context_set_state (context, state);
gtk_render_arrow (context, cr, angle, x, y, extent);
- gtk_style_context_restore (context);
-
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]