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