[gtk/wip/baedert/for-master] window: Stop adding css nodes manually
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] window: Stop adding css nodes manually
- Date: Sun, 7 Jun 2020 11:19:01 +0000 (UTC)
commit 9cde99c34df23d7cdb1ca3f0abd39eb6ca9f3de2
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 26c709808f..b8415584b4 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]