diff options
author | Rui Matos <tiagomatos@gmail.com> | 2011-12-22 00:37:10 +0000 |
---|---|---|
committer | Rui Matos <tiagomatos@gmail.com> | 2012-01-09 16:45:44 +0000 |
commit | 76485b8670ae137d68c11d9ba1467eaa545fda26 (patch) | |
tree | 5cd0b82bd64857ef7f51010460a97e3b2740037f /gtk/gtktrayicon-x11.c | |
parent | 8bb0773535fdd474cd1d4f0cbcc3f8465f8b2f88 (diff) | |
download | gtk+-76485b8670ae137d68c11d9ba1467eaa545fda26.tar.gz |
trayicon-x11: Stop setting state flags on the style context for drawing
Diffstat (limited to 'gtk/gtktrayicon-x11.c')
-rw-r--r-- | gtk/gtktrayicon-x11.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtktrayicon-x11.c b/gtk/gtktrayicon-x11.c index b20027a91c..f57da1ef5f 100644 --- a/gtk/gtktrayicon-x11.c +++ b/gtk/gtktrayicon-x11.c @@ -390,20 +390,13 @@ gtk_tray_icon_draw (GtkWidget *widget, if (focus_child && gtk_widget_has_visible_focus (focus_child)) { GtkStyleContext *context; - GtkStateFlags state; border_width = gtk_container_get_border_width (GTK_CONTAINER (widget)); context = gtk_widget_get_style_context (widget); - state = gtk_widget_get_state_flags (widget); - - gtk_style_context_save (context); - gtk_style_context_set_state (context, state); gtk_render_focus (context, cr, border_width, border_width, gtk_widget_get_allocated_width (widget) - 2 * border_width, gtk_widget_get_allocated_height (widget) - 2 * border_width); - - gtk_style_context_restore (context); } return retval; |