diff options
author | Adam Williamson <awilliam@redhat.com> | 2023-04-20 13:22:19 -0700 |
---|---|---|
committer | Adam Williamson <awilliam@redhat.com> | 2023-04-20 13:30:22 -0700 |
commit | da9f5f240c7d1381b87dab8c789bf0bdf47a7609 (patch) | |
tree | 3d0718e7a489768ad79a6718fac8f0d460e1c6ad | |
parent | 7998cc581046aeab3f7c952656aec8accaef76e2 (diff) | |
download | zenity-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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |