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

This commit is contained in:
Rui Matos 2011-12-19 15:43:10 +00:00
parent 5b4cc2f0b6
commit 6b624a5a18

View File

@ -636,15 +636,11 @@ gtk_menu_bar_draw (GtkWidget *widget,
cairo_t *cr)
{
GtkStyleContext *context;
GtkStateFlags state;
int border;
border = 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_set_state (context, state);
if (get_shadow_type (GTK_MENU_BAR (widget)) != GTK_SHADOW_NONE)
gtk_render_background (context, cr,
border, border,