gtk: render GtkEventBox' background in the right state

This commit is contained in:
Michael Natterer 2011-01-14 16:55:46 +01:00
parent d0f51577a4
commit 6f4adebcef

View File

@ -595,9 +595,13 @@ gtk_event_box_draw (GtkWidget *widget,
GtkStyleContext *context;
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);