svn path=/trunk/; revision=18307
This commit is contained in:
Matthias Clasen 2007-06-30 07:04:18 +00:00
parent 988a3e2bf4
commit 8c3832cf03
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2007-06-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkbuilderparser.c (_gtk_builder_parse_boolean):
Use g_ascii_strdown() instead of a rolling our own.
2007-06-30 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkbuilderparser.c: (_get_type_by_symbol), (parse_object),

View File

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