34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From da9f5f240c7d1381b87dab8c789bf0bdf47a7609 Mon Sep 17 00:00:00 2001
|
|
From: Adam Williamson <awilliam@redhat.com>
|
|
Date: Thu, 20 Apr 2023 13:22:19 -0700
|
|
Subject: [PATCH] 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>
|
|
---
|
|
src/tree.c | 3 +++
|
|
1 file changed, 3 insertions(+)
|
|
|
|
diff --git a/src/tree.c b/src/tree.c
|
|
index b59a9198..0747fcf3 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)
|
|
--
|
|
2.40.0
|
|
|