From 6dde25ea5bba5efb089d6a3cd6eaea4b5f738a44 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 20 Apr 2023 13:42:29 -0700 Subject: [PATCH] tree-column-view: don't steal children Signed-off-by: Adam Williamson --- src/zenity-tree-column-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zenity-tree-column-view.c b/src/zenity-tree-column-view.c index 9b4b5a60..5117f954 100644 --- a/src/zenity-tree-column-view.c +++ b/src/zenity-tree-column-view.c @@ -555,7 +555,8 @@ factory_bind_cb (ZenityTreeColumnView *self, item = zenity_tree_row_get_item (row, col_index); item_child = zenity_tree_item_get_child (item); item_text = zenity_tree_item_get_text (item); - gtk_list_item_set_child (list_item, item_child); + if (!gtk_widget_get_parent (item_child)) + gtk_list_item_set_child (list_item, item_child); gtk_widget_set_halign (item_child, GTK_ALIGN_START); -- 2.40.0