Mercurial > pidgin
diff src/themes.c @ 4793:677d3cb193a1
[gaim-migrate @ 5113]
this removes all the remaining deprecated glib, gdk, gdk-pixbuf, and gtk
function calls. Hopefully I didn't break anything.
Most of this is due to the deprecation of g_strcasecmp and g_strncasecmp.
Two functions I never thought would be deprecated, but apparently they're
no good at comparing utf8 text. g_ascii_str{,n}casecmp is OK when you're
sure that it's ASCII. Otherwise, we're supposed to use g_utf8_collate(),
except that it is case sensitive. Since glib doesn't currently have a
case-insensitive one, I wrote one. If you need to compare utf8 text, you
can use gaim_utf8_strcasecmp().
I have to go do dishes now.
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Sun, 16 Mar 2003 00:01:49 +0000 |
| parents | 4bf9c6e8e432 |
| children | 043f7c059034 |
line wrap: on
line diff
--- a/src/themes.c Sat Mar 15 22:22:39 2003 +0000 +++ b/src/themes.c Sun Mar 16 00:01:49 2003 +0000 @@ -136,16 +136,16 @@ else theme->list = child; list = child; - } else if (!g_strncasecmp(i, "Name=", strlen("Name="))) { + } else if (!g_ascii_strncasecmp(i, "Name=", strlen("Name="))) { theme->name = g_strdup(i+ strlen("Name=")); theme->name[strlen(theme->name)-1] = 0; - } else if (!g_strncasecmp(i, "Description=", strlen("Description="))) { + } else if (!g_ascii_strncasecmp(i, "Description=", strlen("Description="))) { theme->desc = g_strdup(i + strlen("Description=")); theme->desc[strlen(theme->desc)-1] = 0; - } else if (!g_strncasecmp(i, "Icon=", strlen("Icon="))) { + } else if (!g_ascii_strncasecmp(i, "Icon=", strlen("Icon="))) { theme->icon = g_build_filename(dirname, i + strlen("Icon="), NULL); theme->icon[strlen(theme->icon)-1] = 0; - } else if (!g_strncasecmp(i, "Author=", strlen("Author="))) { + } else if (!g_ascii_strncasecmp(i, "Author=", strlen("Author="))) { theme->author = g_strdup(i + strlen("Author=")); theme->author[strlen(theme->author)-1] = 0; } else if (load && list) {
