aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-14 17:30:18 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-18 16:31:10 +0800
commit35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699 (patch)
tree157b3f310388032d8952381e1baf4e6d863f4ed0 /libempathy
parent7a5547dfa849ca3df4be23e83643c91d9069cabf (diff)
downloadgsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar.gz
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar.bz2
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar.lz
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar.xz
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.tar.zst
gsoc2013-empathy-35dfc34fc41a8150b9d66d3bbbbc7414e9cb3699.zip
individual-manager: document individual_notify_im_interaction_count()
https://bugzilla.gnome.org/show_bug.cgi?id=677940
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-individual-manager.c4
1 files changed, 4 insertions, 0 deletions
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);
}