aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-09 22:42:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-15 16:28:41 +0800
commitd8d32209c69c82ebec704126c461abb9e39e1b8f (patch)
tree801631080a494b0362ee3019dd3b41ce1bf3383d
parent1accacab8c375482d6bd16de400529e333c8078f (diff)
downloadgsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar.gz
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar.bz2
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar.lz
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar.xz
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.tar.zst
gsoc2013-empathy-d8d32209c69c82ebec704126c461abb9e39e1b8f.zip
Display the fake 'Favorites' group at the top of the contact list
-rw-r--r--libempathy-gtk/empathy-contact-list-store.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-contact-list-store.c b/libempathy-gtk/empathy-contact-list-store.c
index b322ed7c1..223d430ef 100644
--- a/libempathy-gtk/empathy-contact-list-store.c
+++ b/libempathy-gtk/empathy-contact-list-store.c
@@ -1582,11 +1582,15 @@ compare_separator_and_groups (gboolean is_separator_a,
return -1;
} else if (!contact_a && !contact_b) {
/* Two groups. The 'Ungrouped' fake group is display at the bottom of the
- * contact list. */
+ * contact list and the 'Favorites' at the top. */
if (!tp_strdiff (name_a, EMPATHY_CONTACT_LIST_STORE_UNGROUPED))
return 1;
else if (!tp_strdiff (name_b, EMPATHY_CONTACT_LIST_STORE_UNGROUPED))
return -1;
+ else if (!tp_strdiff (name_a, EMPATHY_CONTACT_LIST_STORE_FAVORITE))
+ return -1;
+ else if (!tp_strdiff (name_b, EMPATHY_CONTACT_LIST_STORE_FAVORITE))
+ return 1;
else
return g_utf8_collate (name_a, name_b);
}