diff options
author | Seif Lotfy <seif@lotfy.com> | 2012-06-17 06:14:17 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-18 18:54:51 +0800 |
commit | 5292eef36b1cd080a7b3f3694fb1628ab74b7b64 (patch) | |
tree | dfdc72de8379e20592ec7115f87cf85887ae6cff | |
parent | 8bcfaf8f90a53ea4cd5fd92937aab8d313e373cb (diff) | |
download | gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar.gz gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar.bz2 gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar.lz gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar.xz gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.tar.zst gsoc2013-empathy-5292eef36b1cd080a7b3f3694fb1628ab74b7b64.zip |
Show Popular contacts in the "Top Contacts" group
https://bugzilla.gnome.org/show_bug.cgi?id=678083
-rw-r--r-- | libempathy-gtk/empathy-roster-view.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c index 1b1c394d1..b823b71a4 100644 --- a/libempathy-gtk/empathy-roster-view.c +++ b/libempathy-gtk/empathy-roster-view.c @@ -304,9 +304,13 @@ individual_added (EmpathyRosterView *self, else { GeeSet *groups; + GList *tops; + + tops = empathy_individual_manager_get_top_individuals (self->priv->manager); if (folks_favourite_details_get_is_favourite ( - FOLKS_FAVOURITE_DETAILS (individual))) + FOLKS_FAVOURITE_DETAILS (individual)) || + g_list_index (tops, individual) != -1) { add_to_group (self, individual, TOP_GROUP); } |