Mercurial > pidgin.yaz
comparison src/gtkconv.c @ 10904:e0cf11160c97
[gaim-migrate @ 12632]
Patch #1195915 from Jean-Yves Lefort - fix case insensitive sorting of the
chat user list on platforms where g_utf8_collate doesn't result in
casefolding.
I also made the tab-complete list of possible matches sorted, this was
suggested in #gaim a while ago (when the user list mis-sorting was
originally mentioned), but I totally forgot to do either of these until now.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 07 May 2005 13:40:30 +0000 |
parents | 3f85d6fc763a |
children | 61ae1ee53a94 |
comparison
equal
deleted
inserted
replaced
10903:c153119be7d0 | 10904:e0cf11160c97 |
---|---|
3445 most_matched++; | 3445 most_matched++; |
3446 | 3446 |
3447 g_free(tmp); | 3447 g_free(tmp); |
3448 } | 3448 } |
3449 | 3449 |
3450 matches = g_list_append(matches, name); | 3450 matches = g_list_insert_sorted(matches, name, |
3451 (GCompareFunc)gaim_utf8_strcasecmp); | |
3451 } | 3452 } |
3452 | 3453 |
3453 g_free(nick_partial); | 3454 g_free(nick_partial); |
3454 | 3455 |
3455 /* we're only here if we're doing new style */ | 3456 /* we're only here if we're doing new style */ |
3745 ret = (user1 == NULL) ? -1: 1; | 3746 ret = (user1 == NULL) ? -1: 1; |
3746 } else if (f1 != f2) { | 3747 } else if (f1 != f2) { |
3747 /* sort more important users first */ | 3748 /* sort more important users first */ |
3748 ret = (f1 > f2) ? -1 : 1; | 3749 ret = (f1 > f2) ? -1 : 1; |
3749 } else { | 3750 } else { |
3750 ret = g_utf8_collate(user1, user2); | 3751 ret = gaim_utf8_strcasecmp(user1, user2); |
3751 } | 3752 } |
3752 | 3753 |
3753 g_free(user1); | 3754 g_free(user1); |
3754 g_free(user2); | 3755 g_free(user2); |
3755 | 3756 |