[gtk/wip/baedert/single-node-window: 1/8] treeview: connect css nodes before connecting widgets



commit 9a5d706ced5cc383f090a48365dbeee58446d9b6
Author: Timm Bäder <mail baedert org>
Date:   Thu May 7 21:13:23 2020 +0200

    treeview: connect css nodes before connecting widgets
    
    The css node and widget tree are still not the same in treeviews, so we
    need to do this.

 gtk/gtktreeview.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 2b3b46441c..ce61728d8d 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -9967,6 +9967,8 @@ gtk_tree_view_ensure_interactive_directory (GtkTreeView *tree_view)
     return;
 
   tree_view->search_popover = gtk_popover_new ();
+  gtk_css_node_set_parent (gtk_widget_get_css_node (tree_view->search_popover),
+                           gtk_widget_get_css_node (GTK_WIDGET (tree_view)));
   gtk_widget_set_parent (tree_view->search_popover, GTK_WIDGET (tree_view));
   gtk_popover_set_autohide (GTK_POPOVER (tree_view->search_popover), FALSE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]