summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2009-01-09 00:14:01 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2009-01-09 00:14:01 +0000
commitba29edd13497fac1414d9dacd9f1ad147ac716ad (patch)
tree28e874048f9306a241508e584e15ba2d52551486
parentGNOME Goal: Clean up GLib and GTK+ includes (Fixes bug #563855). Patch (diff)
downloadzenity-ba29edd13497fac1414d9dacd9f1ad147ac716ad.tar.gz
zenity-ba29edd13497fac1414d9dacd9f1ad147ac716ad.tar.bz2
zenity-ba29edd13497fac1414d9dacd9f1ad147ac716ad.zip
GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452). Patch from
2009-01-09 Lucas Rocha <lucasr@gnome.org> * src/tree.c: GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452). Patch from Frederic Peters <fpeters@0d.be>. svn path=/trunk/; revision=1463
-rw-r--r--ChangeLog6
-rw-r--r--src/tree.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index a60f0936..899ca4d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2009-01-09 Lucas Rocha <lucasr@gnome.org>
+ * src/tree.c:
+ GNOME Goal: Remove deprecated GLib symbols (Fixes bug #560452).
+ Patch from Frederic Peters <fpeters@0d.be>.
+
+2009-01-09 Lucas Rocha <lucasr@gnome.org>
+
* src/main.c:
* src/option.h:
GNOME Goal: Clean up GLib and GTK+ includes (Fixes bug #563855).
diff --git a/src/tree.c b/src/tree.c
index 65e9c471..3237cded 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -150,7 +150,7 @@ zenity_tree_handle_stdin (GIOChannel *channel,
}
if (toggles && column_count == 0) {
- if (strcmp (g_strdown (zenity_util_strip_newline (string->str)), "true") == 0)
+ if (strcmp (g_ascii_strdown (zenity_util_strip_newline (string->str), -1), "true") == 0)
gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, TRUE, -1);
else
gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, FALSE, -1);
@@ -228,7 +228,7 @@ zenity_tree_fill_entries (GtkTreeView *tree_view,
for (j = 0; j < n_columns; j++) {
if (toggles && j == 0) {
- if (strcmp (g_strdown ((gchar *) args[i+j]), "true") == 0)
+ if (strcmp (g_ascii_strdown ((gchar *) args[i+j], -1), "true") == 0)
gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, TRUE, -1);
else
gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, FALSE, -1);
@@ -302,7 +302,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
n_columns = g_slist_length (tree_data->columns);
if (tree_data->print_column) {
- if (strcmp (g_strdown (tree_data->print_column), "all") == 0)
+ if (strcmp (g_ascii_strdown (tree_data->print_column, -1), "all") == 0)
print_all_columns = TRUE;
else
print_columns = zenity_tree_extract_column_indexes (tree_data->print_column, n_columns);
bgstack15