From 35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 14 Jun 2012 11:30:18 +0200 Subject: individual-manager: document individual_notify_im_interaction_count() https://bugzilla.gnome.org/show_bug.cgi?id=677940 --- libempathy/empathy-individual-manager.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-individual-manager.c b/libempathy/empathy-individual-manager.c index e80e13224..c75a78208 100644 --- a/libempathy/empathy-individual-manager.c +++ b/libempathy/empathy-individual-manager.c @@ -220,6 +220,10 @@ individual_notify_im_interaction_count (FolksIndividual *individual, { EmpathyIndividualManagerPriv *priv = GET_PRIV (self); + /* We don't use g_sequence_sort_changed() because we'll first have to find + * the iter of @individual using g_sequence_lookup() but the lookup function + * won't work as it assumes that the sequence is sorted which is no longer + * the case at this point as @individual's popularity just changed. */ g_sequence_sort (priv->individuals_pop, compare_individual_by_pop, NULL); check_top_individuals (self); } -- cgit v1.2.3