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
This commit is contained in:
Lucas Rocha 2007-05-14 22:07:13 +00:00 committed by Lucas Almeida Rocha
parent ab6159f84b
commit a705262d81
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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).

View File

@ -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);