From bc282cfa65502ea8d8a84553162f5690b8bf328c Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Mon, 17 Jan 2005 01:33:23 +0000 Subject: Patch from Ed Catmur to fix the list dialog on stdin. Fixes #164152. 2005-01-17 Glynn Foster * src/tree.c: Patch from Ed Catmur to fix the list dialog on stdin. Fixes #164152. * src/about.c, THANKS: Update. --- ChangeLog | 6 ++++++ THANKS | 1 + src/about.c | 1 + src/tree.c | 4 ++-- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6572c8ca..5549a60e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-17 Glynn Foster + + * src/tree.c: Patch from Ed Catmur to fix the list dialog + on stdin. Fixes #164152. + * src/about.c, THANKS: Update. + 2005-01-11 Glynn Foster * configure.in: post release bump. diff --git a/THANKS b/THANKS index 637ebc4d..584075e0 100644 --- a/THANKS +++ b/THANKS @@ -13,6 +13,7 @@ "Ross Burton ", "Damien Carbery ", "Anders Carlsson ", + "Ed Catmur ", "Nicholas Curran ", "John Fleck ", "Sebastian Heinlein ", diff --git a/src/about.c b/src/about.c index d6fc9083..d64d6777 100644 --- a/src/about.c +++ b/src/about.c @@ -61,6 +61,7 @@ static const gchar *author_credits[] = { "Ross Burton ", "Damien Carbery ", "Anders Carlsson ", + "Ed Catmur ", "Nicholas Curran ", "John Fleck ", "Sebastian Heinlein ", diff --git a/src/tree.c b/src/tree.c index 49c1d782..63fe4aee 100644 --- a/src/tree.c +++ b/src/tree.c @@ -440,13 +440,13 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree_view), TRUE); if (tree_data->radiobox || tree_data->checkbox) { - if (tree_data->data) + if (tree_data->data && *tree_data->data) zenity_tree_fill_entries (GTK_TREE_VIEW (tree_view), tree_data->data, n_columns, TRUE, tree_data->editable); else zenity_tree_fill_entries_from_stdin (GTK_TREE_VIEW (tree_view), n_columns, TRUE, tree_data->editable); } else { - if (tree_data->data) + if (tree_data->data && *tree_data->data) zenity_tree_fill_entries (GTK_TREE_VIEW (tree_view), tree_data->data, n_columns, FALSE, tree_data->editable); else zenity_tree_fill_entries_from_stdin (GTK_TREE_VIEW (tree_view), n_columns, FALSE, tree_data->editable); -- cgit