[gtk/gtk-demo-fixes: 9/9] treeview: Fix embedding cell renderers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-demo-fixes: 9/9] treeview: Fix embedding cell renderers
- Date: Tue, 24 Dec 2019 08:41:40 +0000 (UTC)
commit 9e3147f78d6588d67e1b8d8beb502b74b69a9357
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 24 03:39:02 2019 -0500
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).
gtk/gtktreeview.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 76b24c08b4..291e7abc66 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]