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