diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-12-15 01:35:01 +0000 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2011-12-19 19:21:15 +0000 |
commit | cf469eeb61e3da03c404c87a6b93df1bc697c480 (patch) | |
tree | 1f6325b034cf7a7de55626d3bbc0727abfd63351 /gtk/gtkarrow.c | |
parent | 221442aa2a4da11f8b342e0e0696cdb1228b9e29 (diff) | |
download | gtk+-cf469eeb61e3da03c404c87a6b93df1bc697c480.tar.gz |
arrow: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtkarrow.c')
-rw-r--r-- | gtk/gtkarrow.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c index 0df37bebc7..e3dde7cfc2 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; } |