summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2007-05-14 22:07:13 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2007-05-14 22:07:13 +0000
commita705262d816a7f2d9bdd5405f6c077b690219cef (patch)
treeeb3e98ab8e22f1110f2a30ff3958a6bf2ee02d2d
parentmake libnotify support an option (Fixes bug #346843). Patch from Saleem (diff)
downloadzenity-a705262d816a7f2d9bdd5405f6c077b690219cef.tar.gz
zenity-a705262d816a7f2d9bdd5405f6c077b690219cef.tar.bz2
zenity-a705262d816a7f2d9bdd5405f6c077b690219cef.zip
fix index handling for --print-column (Fixes bug #420396).
2007-05-15 Lucas Rocha <lucasr@gnome.org> * src/tree.c (zenity_tree_dialog_toggle_get_selected): fix index handling for --print-column (Fixes bug #420396). svn path=/trunk/; revision=1211
-rw-r--r--ChangeLog5
-rw-r--r--src/tree.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e2f9efe2..5d0373f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2007-05-15 Lucas Rocha <lucasr@gnome.org>
+ * src/tree.c (zenity_tree_dialog_toggle_get_selected): fix index
+ handling for --print-column (Fixes bug #420396).
+
+2007-05-15 Lucas Rocha <lucasr@gnome.org>
+
* configure.ac: make libnotify support an option (Fixes bug #346843).
Patch from Saleem Abdulrasool <compnerd@gentoo.org>.
diff --git a/src/tree.c b/src/tree.c
index 1e67f706..09346e0a 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -550,7 +550,7 @@ zenity_tree_dialog_toggle_get_selected (GtkTreeModel *model, GtkTreePath *path,
}
for (i = 0; print_columns[i] != 0; i++) {
- gtk_tree_model_get_value (model, iter, print_columns[i], &value);
+ gtk_tree_model_get_value (model, iter, print_columns[i] - 1, &value);
selected = g_slist_append (selected, g_strdup (g_value_get_string (&value)));
g_value_unset (&value);
bgstack15