summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Williamson <awilliam@redhat.com>2023-04-20 13:22:19 -0700
committerAdam Williamson <awilliam@redhat.com>2023-04-20 13:30:22 -0700
commitda9f5f240c7d1381b87dab8c789bf0bdf47a7609 (patch)
tree3d0718e7a489768ad79a6718fac8f0d460e1c6ad
parent7998cc581046aeab3f7c952656aec8accaef76e2 (diff)
downloadzenity-da9f5f240c7d1381b87dab8c789bf0bdf47a7609.tar.gz
tree: fix handling of multi-row stdin input (#54)
This was broken by the GtkColumnView port (7a80b67). As part of the changes that just stopped any attempt to actually start a new row here, so we just kept stuffing more and more items into the only row item we ever create. So you just couldn't do multi- row input via stdin. Signed-off-by: Adam Williamson <awilliam@redhat.com>
-rw-r--r--src/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index b59a919..0747fcf 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -120,6 +120,9 @@ zenity_tree_handle_stdin (GIOChannel *channel, GIOCondition condition, gpointer
/* We're starting a new row */
column_count = 0;
row_count++;
+ if (row)
+ g_list_store_append (store, row);
+ row = zenity_tree_row_new ();
}
if (toggles && column_count == 0)