summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2005-01-17 01:33:23 +0000
committerGlynn Foster <gman@src.gnome.org>2005-01-17 01:33:23 +0000
commitbc282cfa65502ea8d8a84553162f5690b8bf328c (patch)
treeeeb2f5672fc4f2624c9f7f4fb8a73fe1f3639ec9 /src/tree.c
parentUpdated German translation. (diff)
downloadzenity-bc282cfa65502ea8d8a84553162f5690b8bf328c.tar.gz
zenity-bc282cfa65502ea8d8a84553162f5690b8bf328c.tar.bz2
zenity-bc282cfa65502ea8d8a84553162f5690b8bf328c.zip
Patch from Ed Catmur to fix the list dialog on stdin. Fixes #164152.
2005-01-17 Glynn Foster <glynn.foster@sun.com> * src/tree.c: Patch from Ed Catmur to fix the list dialog on stdin. Fixes #164152. * src/about.c, THANKS: Update.
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
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);
bgstack15