aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-07-20 01:55:35 +0800
committerTravis Reitter <treitter@gmail.com>2010-08-03 04:41:31 +0800
commit791e5739bca80309501825f48da93a78aaba0b3c (patch)
treedb9f0805fc87927b4c2522c953755a09d7e41d24 /libempathy/empathy-contact.c
parent26193e7075c04d7ec01b6a75a71206a3e690b6e8 (diff)
downloadgsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar.gz
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar.bz2
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar.lz
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar.xz
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.tar.zst
gsoc2013-empathy-791e5739bca80309501825f48da93a78aaba0b3c.zip
Maintain a list of Individuals which have EmpathyContacts in the manager
This is necessary so that Individuals can be tracked as EmpathyContact-carrying Personas are added and removed from them, and to ensure that the IndividualManager doesn't use Individuals without EmpathyContacts.
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index 6842cde09..b28959a31 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -807,7 +807,8 @@ empathy_contact_get_persona (EmpathyContact *contact)
if (tp_contact == priv->tp_contact)
{
/* Found the right persona */
- priv->persona = g_object_ref (persona);
+ empathy_contact_set_persona (contact,
+ (FolksPersona*) persona);
goto finished;
}
}