diff options
author | Benjamin Otte <otte@redhat.com> | 2020-10-20 01:50:12 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-10-20 04:50:12 +0200 |
commit | d9b216e62940aa9b159611a88ed9af57a050e51d (patch) | |
tree | 35400e5984403eb93cb3afa9800280ec0a4f95cb /gtk/gtktreeviewcolumn.c | |
parent | 83d8ae2f3091ca591a9dbf336c33d7dc29b2ca19 (diff) | |
download | gtk+-d9b216e62940aa9b159611a88ed9af57a050e51d.tar.gz |
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
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 3 |
1 files changed, 2 insertions, 1 deletions
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, |