treeview: Fix embedding cell renderers

We need to manually set up the css node,
since the treeview has children whose css
node is not a direct child of the treeview
css node (header buttons).
This commit is contained in:
Matthias Clasen 2019-12-24 03:39:02 -05:00
parent cc3ecac6d8
commit 9e3147f78d

View File

@ -8195,6 +8195,9 @@ gtk_tree_view_put (GtkTreeView *tree_view,
tree_view->priv->children = g_list_append (tree_view->priv->children, child);
gtk_css_node_insert_after (gtk_widget_get_css_node (GTK_WIDGET (tree_view)),
gtk_widget_get_css_node (child_widget),
tree_view->priv->header_node);
gtk_widget_set_parent (child_widget, GTK_WIDGET (tree_view));
}