[gtk/wip/baedert/for-master: 91/96] window: Stop adding css nodes manually



commit 1c2886d9ed188b61fd7a8891cfac202a18ddadee
Author: Timm Bäder <mail baedert org>
Date:   Sun Jun 7 08:22:09 2020 +0200

    window: Stop adding css nodes manually
    
    No decoration node, no need to do this.

 gtk/gtkwindow.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 8f2778f23a..cb4f64eabb 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2829,12 +2829,7 @@ gtk_window_set_titlebar (GtkWindow *window,
 
   gtk_window_enable_csd (window);
   priv->title_box = titlebar;
-  /* Same reason as in gtk_window_set_child */
-  gtk_css_node_insert_before (gtk_widget_get_css_node (GTK_WIDGET (window)),
-                              gtk_widget_get_css_node (titlebar),
-                              NULL);
-
-  gtk_widget_set_parent (priv->title_box, widget);
+  gtk_widget_insert_after (priv->title_box, widget, NULL);
 
   gtk_widget_add_css_class (titlebar, GTK_STYLE_CLASS_TITLEBAR);
 


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