[empathy] Show Popular contacts in the "Top Contacts" group



commit 5292eef36b1cd080a7b3f3694fb1628ab74b7b64
Author: Seif Lotfy <seif lotfy com>
Date:   Sun Jun 17 00:14:17 2012 +0200

    Show Popular contacts in the "Top Contacts" group
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678083

 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 1b1c394..b823b71 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);
         }



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