From d9b216e62940aa9b159611a88ed9af57a050e51d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 20 Oct 2020 01:50:12 +0200 Subject: widget: Always update the CSS node Anybody who keeps their own CSS nodes around or wants to order CSS nodes different from widgets will from now on have to do it manually all the time. This is outdated behavior, nobody should be doing either of those two things. Also, the correct case is much more common, and not doing it automatically was causing bugs. Fixes #3280 --- gtk/gtktreeviewcolumn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk/gtktreeviewcolumn.c') diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 32f640b354..f224182192 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -1324,7 +1324,8 @@ _gtk_tree_view_column_set_tree_view (GtkTreeViewColumn *column, priv->tree_view = GTK_WIDGET (tree_view); - gtk_widget_set_parent (priv->button, GTK_WIDGET (tree_view)); + /* avoid a warning with our messed up CSS nodes */ + gtk_widget_insert_after (priv->button, GTK_WIDGET (tree_view), NULL); priv->property_changed_signal = g_signal_connect_swapped (tree_view, -- cgit v1.2.1