Commit 6b624a5a authored by Rui Matos's avatar Rui Matos

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

parent 5b4cc2f0
......@@ -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,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment