# HG changeset patch # User Stu Tomlinson # Date 1115473230 0 # Node ID e0cf11160c97c152aeff174c0be078dbeb12971b # Parent c153119be7d0ee89abc5dda8ee648a78b3ffe4ec [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 diff -r c153119be7d0 -r e0cf11160c97 src/gtkconv.c --- a/src/gtkconv.c Sat May 07 13:08:21 2005 +0000 +++ b/src/gtkconv.c Sat May 07 13:40:30 2005 +0000 @@ -3447,7 +3447,8 @@ g_free(tmp); } - matches = g_list_append(matches, name); + matches = g_list_insert_sorted(matches, name, + (GCompareFunc)gaim_utf8_strcasecmp); } g_free(nick_partial); @@ -3747,7 +3748,7 @@ /* sort more important users first */ ret = (f1 > f2) ? -1 : 1; } else { - ret = g_utf8_collate(user1, user2); + ret = gaim_utf8_strcasecmp(user1, user2); } g_free(user1);