summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2007-08-13 20:16:37 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2007-08-13 20:16:37 +0000
commitae3e8d1496fcfc3bf2ca65e475455bbf4c935e50 (patch)
tree6aec81d373d2f626f81929808c3eab0c559a0e22
parentUpdated Occitan translation (diff)
downloadzenity-ae3e8d1496fcfc3bf2ca65e475455bbf4c935e50.tar.gz
zenity-ae3e8d1496fcfc3bf2ca65e475455bbf4c935e50.tar.bz2
zenity-ae3e8d1496fcfc3bf2ca65e475455bbf4c935e50.zip
fix critical warning when using checkbox and radiobox in list dialog
2007-08-13 Lucas Rocha <lucasr@gnome.org> * src/tree.c: fix critical warning when using checkbox and radiobox in list dialog (Fixes bug #453713). svn path=/trunk/; revision=1230
-rw-r--r--ChangeLog5
-rw-r--r--src/tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 989d77ad..cd2e28c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-13 Lucas Rocha <lucasr@gnome.org>
+
+ * src/tree.c: fix critical warning when using checkbox and radiobox in
+ list dialog (Fixes bug #453713).
+
2007-05-27 Lucas Rocha <lucasr@gnome.org>
* src/tree.c: fix broken handling of input from pipes in list
diff --git a/src/tree.c b/src/tree.c
index dafb2eb5..254ac0e7 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -309,7 +309,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
}
else {
print_columns = g_new (gint, 2);
- print_columns[0] = 1;
+ print_columns[0] = (tree_data->radiobox || tree_data->checkbox ? 2 : 1);
print_columns[1] = 0;
}
bgstack15