mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
menubar: Stop setting state flags on the style context for drawing
This commit is contained in:
parent
5b4cc2f0b6
commit
6b624a5a18
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user