zenity r1353 - in branches/gnome-2-22: . src
- From: lucasr svn gnome org
- To: svn-commits-list gnome org
- Subject: zenity r1353 - in branches/gnome-2-22: . src
- Date: Thu, 10 Apr 2008 10:58:20 +0100 (BST)
Author: lucasr
Date: Thu Apr 10 10:58:19 2008
New Revision: 1353
URL: http://svn.gnome.org/viewvc/zenity?rev=1353&view=rev
Log:
2008-04-10 Lucas Rocha <lucasr gnome org>
* src/tree.c (zenity_tree_dialog_get_selected,
zenity_tree_dialog_toggle_get_selected): use g_value_dup_string when
applicable (Fixes bug #527258). Patch from kraai ftbfs org
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/tree.c
Modified: branches/gnome-2-22/src/tree.c
==============================================================================
--- branches/gnome-2-22/src/tree.c (original)
+++ branches/gnome-2-22/src/tree.c Thu Apr 10 10:58:19 2008
@@ -516,7 +516,7 @@
for (i = 0; i < n_columns; i++) {
gtk_tree_model_get_value (model, iter, i, &value);
- selected = g_slist_append (selected, g_strdup (g_value_get_string (&value)));
+ selected = g_slist_append (selected, g_value_dup_string (&value));
g_value_unset (&value);
}
return;
@@ -525,7 +525,7 @@
for (i = 0; print_columns[i] != 0; i++) {
gtk_tree_model_get_value (model, iter, print_columns[i] - 1, &value);
- selected = g_slist_append (selected, g_strdup (g_value_get_string (&value)));
+ selected = g_slist_append (selected, g_value_dup_string (&value));
g_value_unset (&value);
}
}
@@ -547,7 +547,7 @@
for (i = 1; i < n_columns; i++) {
gtk_tree_model_get_value (model, iter, i, &value);
- selected = g_slist_append (selected, g_strdup (g_value_get_string (&value)));
+ selected = g_slist_append (selected, g_value_dup_string (&value));
g_value_unset (&value);
}
g_value_unset (&toggle_value);
@@ -557,7 +557,7 @@
for (i = 0; print_columns[i] != 0; i++) {
gtk_tree_model_get_value (model, iter, print_columns[i] - 1, &value);
- selected = g_slist_append (selected, g_strdup (g_value_get_string (&value)));
+ selected = g_slist_append (selected, g_value_dup_string (&value));
g_value_unset (&value);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]