diff options
-rw-r--r-- | libempathy/empathy-individual-manager.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c index e80e13224..73a8ed394 100644 --- a/libempathy/empathy-individual-manager.c +++ b/libempathy/empathy-individual-manager.c @@ -132,8 +132,11 @@ compute_popularity (FolksIndividual *individual) { /* TODO: we should have a better heuristic using the last time we interacted * with the contact as well. */ +#if 0 return folks_interaction_details_get_im_interaction_count ( FOLKS_INTERACTION_DETAILS (individual)); +#endif + return 0; } static void @@ -213,6 +216,7 @@ compare_individual_by_pop (gconstpointer a, return pop_b - pop_a; } +#if 0 static void individual_notify_im_interaction_count (FolksIndividual *individual, GParamSpec *pspec, @@ -223,6 +227,7 @@ individual_notify_im_interaction_count (FolksIndividual *individual, g_sequence_sort (priv->individuals_pop, compare_individual_by_pop, NULL); check_top_individuals (self); } +#endif static void add_individual (EmpathyIndividualManager *self, FolksIndividual *individual) @@ -241,8 +246,10 @@ add_individual (EmpathyIndividualManager *self, FolksIndividual *individual) G_CALLBACK (individual_group_changed_cb), self); g_signal_connect (individual, "notify::is-favourite", G_CALLBACK (individual_notify_is_favourite_cb), self); +#if 0 g_signal_connect (individual, "notify::im-interaction-count", G_CALLBACK (individual_notify_im_interaction_count), self); +#endif } static void @@ -263,8 +270,10 @@ remove_individual (EmpathyIndividualManager *self, FolksIndividual *individual) individual_group_changed_cb, self); g_signal_handlers_disconnect_by_func (individual, individual_notify_is_favourite_cb, self); +#if 0 g_signal_handlers_disconnect_by_func (individual, individual_notify_im_interaction_count, self); +#endif g_hash_table_remove (priv->individuals, folks_individual_get_id (individual)); } |