eventbox: Stop setting state flags on the style context for drawing

This commit is contained in:
Rui Matos 2011-12-19 12:24:30 +00:00
parent 754eabeb19
commit 3e0b2f7262

View File

@ -596,12 +596,9 @@ gtk_event_box_draw (GtkWidget *widget,
context = gtk_widget_get_style_context (widget);
gtk_style_context_save (context);
gtk_style_context_set_state (context, gtk_widget_get_state_flags (widget));
gtk_render_background (context, cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
gtk_style_context_restore (context);
}
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->draw (widget, cr);