forked from AuroraMiddleware/gtk
popover: Don't create transient CSS nodes
There is no need to save the style context here.
This commit is contained in:
parent
8d886f3513
commit
0bfc7db1fa
@ -1063,7 +1063,6 @@ gtk_popover_draw (GtkWidget *widget,
|
||||
GtkStateFlags state;
|
||||
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
gtk_style_context_save (context);
|
||||
|
||||
state = gtk_widget_get_state_flags (widget);
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
@ -1145,8 +1144,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
if (child)
|
||||
gtk_container_propagate_draw (GTK_CONTAINER (widget), child, cr);
|
||||
|
||||
gtk_style_context_restore (context);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user