forked from AuroraMiddleware/gtk
Be picky
svn path=/trunk/; revision=18307
This commit is contained in:
parent
988a3e2bf4
commit
8c3832cf03
@ -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),
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user