Mercurial > pidgin
comparison src/server.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 | c4c28874ecd3 |
children | 7bdda84b5431 |
comparison
equal
deleted
inserted
replaced
4792:9212d1c5b7dc | 4793:677d3cb193a1 |
---|---|
853 { | 853 { |
854 struct buddy *b = gaim_find_buddy(gc->account, name); | 854 struct buddy *b = gaim_find_buddy(gc->account, name); |
855 | 855 |
856 if (signon && (gc->prpl->options & OPT_PROTO_CORRECT_TIME)) { | 856 if (signon && (gc->prpl->options & OPT_PROTO_CORRECT_TIME)) { |
857 char *tmp = g_strdup(normalize(name)); | 857 char *tmp = g_strdup(normalize(name)); |
858 if (!g_strcasecmp(tmp, normalize(gc->username))) { | 858 if (!gaim_utf8_strcasecmp(tmp, normalize(gc->username))) { |
859 gc->evil = evil; | 859 gc->evil = evil; |
860 gc->correction_time = (signon - gc->login_time); | 860 gc->correction_time = (signon - gc->login_time); |
861 /*update_idle_times();*/ | 861 /*update_idle_times();*/ |
862 } | 862 } |
863 g_free(tmp); | 863 g_free(tmp); |