summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Rathbone <poprocks@gmail.com>2023-04-26 18:23:18 +0000
committerLogan Rathbone <poprocks@gmail.com>2023-04-26 18:23:18 +0000
commitdece600cb401ed831d811108a2890a8e1d7b4a55 (patch)
tree98b30f594e750527f817eb0d172d89f42b8357be
parent5fed550cd5e6f756acb15c98f36975b0dd3c1ca6 (diff)
parentda9f5f240c7d1381b87dab8c789bf0bdf47a7609 (diff)
downloadzenity-dece600cb401ed831d811108a2890a8e1d7b4a55.tar.gz
Merge branch 'list-stdin-newrow' into 'master'
tree: fix handling of multi-row stdin input (#54) See merge request GNOME/zenity!27
-rw-r--r--src/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index 2f97094..f43de03 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)