mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 14:00:09 +00:00
gtk: render GtkEventBox' background in the right state
This commit is contained in:
parent
d0f51577a4
commit
6f4adebcef
@ -595,9 +595,13 @@ gtk_event_box_draw (GtkWidget *widget,
|
|||||||
GtkStyleContext *context;
|
GtkStyleContext *context;
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (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_render_background (context, cr, 0, 0,
|
||||||
gtk_widget_get_allocated_width (widget),
|
gtk_widget_get_allocated_width (widget),
|
||||||
gtk_widget_get_allocated_height (widget));
|
gtk_widget_get_allocated_height (widget));
|
||||||
|
gtk_style_context_restore (context);
|
||||||
}
|
}
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->draw (widget, cr);
|
GTK_WIDGET_CLASS (gtk_event_box_parent_class)->draw (widget, cr);
|
||||||
|
Loading…
Reference in New Issue
Block a user