[empathy] roster: compare elements as utf8 strings, for correct collation



commit a79f388bd7ab91925b0131837f1d9d8247eecb62
Author: Frédéric Péters <fpeters 0d be>
Date:   Tue Jul 2 10:33:13 2013 +0200

    roster: compare elements as utf8 strings, for correct collation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=703453

 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 657deaa..93b5d0e 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]