diff options
author | Frédéric Péters <fpeters@0d.be> | 2013-07-02 16:33:13 +0800 |
---|---|---|
committer | Frédéric Péters <fpeters@0d.be> | 2013-07-09 16:31:17 +0800 |
commit | a79f388bd7ab91925b0131837f1d9d8247eecb62 (patch) | |
tree | 521d8b62219878c0e09451a75431f2b57d64e3e8 | |
parent | 3823c48231c9a81c4e916057ff8de6245d7d112a (diff) | |
download | gsoc2013-empathy-a79f388bd7ab91925b0131837f1d9d8247eecb62.tar.gz gsoc2013-empathy-a79f388bd7ab91925b0131837f1d9d8247eecb62.tar.zst gsoc2013-empathy-a79f388bd7ab91925b0131837f1d9d8247eecb62.zip |
roster: compare elements as utf8 strings, for correct collation
https://bugzilla.gnome.org/show_bug.cgi?id=703453
-rw-r--r-- | libempathy-gtk/empathy-roster-view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index 657deaa96..93b5d0e53 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -625,7 +625,7 @@ compare_roster_contacts_by_alias (EmpathyRosterContact *a, alias_a = folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (ind_a)); alias_b = folks_alias_details_get_alias (FOLKS_ALIAS_DETAILS (ind_b)); - return g_ascii_strcasecmp (alias_a, alias_b); + return g_utf8_collate (alias_a, alias_b); } static gint @@ -663,7 +663,7 @@ compare_group_names (const gchar *group_a, else if (!tp_strdiff (group_b, EMPATHY_ROSTER_MODEL_GROUP_UNGROUPED)) return -1; - return g_ascii_strcasecmp (group_a, group_b); + return g_utf8_collate (group_a, group_b); } static gint |