Patch by: Maxim Ermilov <zaspire@rambler.ru>
2008-11-20 Jens Granseuer <jensgr@gmx.net> Patch by: Maxim Ermilov <zaspire@rambler.ru> * gnome-wp-xml.c: (gnome_wp_xml_get_bool): use g_ascii_strcasecmp instead of the deprecated g_strcasecmp (bug #560424) svn path=/trunk/; revision=9146
This commit is contained in:
parent
cabbecfa4b
commit
4bf0fec262
2 changed files with 8 additions and 1 deletions
|
@ -34,7 +34,7 @@ static gboolean gnome_wp_xml_get_bool (const xmlNode * parent,
|
|||
|
||||
prop = xmlGetProp ((xmlNode *) parent, (xmlChar*)prop_name);
|
||||
if (prop != NULL) {
|
||||
if (!g_strcasecmp ((gchar *)prop, "true") || !g_strcasecmp ((gchar *)prop, "1")) {
|
||||
if (!g_ascii_strcasecmp ((gchar *)prop, "true") || !g_ascii_strcasecmp ((gchar *)prop, "1")) {
|
||||
ret_val = TRUE;
|
||||
} else {
|
||||
ret_val = FALSE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue