summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2007-06-30 07:04:18 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-06-30 07:04:18 +0000
commit8c3832cf03d63b8d7ffa780068219e17aab7cd2f (patch)
tree8f0189f4a8948f9f3b494be525fcb2a3557cfd28 /gtk/gtkbuilderparser.c
parent988a3e2bf4809359ef65134bc1fb985e7c468c9d (diff)
downloadgtk+-8c3832cf03d63b8d7ffa780068219e17aab7cd2f.tar.gz
Be picky
svn path=/trunk/; revision=18307
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index dd1305b970..a1e31a1187 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -183,9 +183,7 @@ _gtk_builder_parse_boolean (const gchar *string,
}
else
{
- gchar *lower = g_strdup (string);
- for (i = 0; i < strlen (string); i++)
- lower[i] = g_ascii_tolower (string[i]);
+ gchar *lower = g_ascii_strdown (string, length);
if (strcmp (lower, "yes") == 0 || strcmp (lower, "true") == 0)
*value = TRUE;