popover: Use gtk_widget_add_css_class

This commit is contained in:
Timm Bäder 2020-08-01 10:31:38 +02:00
parent 547842e7f0
commit 76f2396764

View File

@ -870,8 +870,7 @@ gtk_popover_init (GtkPopover *popover)
gtk_widget_set_layout_manager (priv->contents_widget, gtk_bin_layout_new ());
gtk_widget_set_parent (priv->contents_widget, GTK_WIDGET (popover));
gtk_css_node_add_class (gtk_widget_get_css_node (GTK_WIDGET (popover)),
g_quark_from_static_string (GTK_STYLE_CLASS_BACKGROUND));
gtk_widget_add_css_class (widget, "background");
add_actions (popover);
}