trayicon-x11: Stop setting state flags on the style context for drawing

This commit is contained in:
Rui Matos 2011-12-22 00:37:10 +00:00
parent 8bb0773535
commit 76485b8670

View File

@ -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;