zenity/0001-tree-column-view-don-t-steal-children.patch
2023-04-20 13:53:40 -07:00

28 lines
966 B
Diff

From 6dde25ea5bba5efb089d6a3cd6eaea4b5f738a44 Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Thu, 20 Apr 2023 13:42:29 -0700
Subject: [PATCH] tree-column-view: don't steal children
Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
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