aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:21:13 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:21:13 +0800
commitb32642f305c21c632b2eedeea41fc6c1d4cba9bf (patch)
tree0a2a4917479df0c9d1f96444e3196cad04f61703 /libempathy
parent9a0512ae698c39e9ffd5abe7e863ac969c9e9e36 (diff)
downloadgsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar.gz
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar.bz2
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar.lz
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar.xz
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.tar.zst
gsoc2013-empathy-b32642f305c21c632b2eedeea41fc6c1d4cba9bf.zip
empathy-tp-contact-factory: factor out contact_created
svn path=/trunk/; revision=1853
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-factory.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 48910e2e9..59f6e3f8f 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -972,6 +972,13 @@ empathy_tp_contact_factory_get_user (EmpathyTpContactFactory *tp_factory)
return g_object_ref (priv->user);
}
+static void
+contact_created (EmpathyTpContactFactory *self,
+ EmpathyContact *contact)
+{
+ tp_contact_factory_add_contact (self, contact);
+}
+
EmpathyContact *
empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
const gchar *id)
@@ -993,7 +1000,7 @@ empathy_tp_contact_factory_get_from_id (EmpathyTpContactFactory *tp_factory,
"account", priv->account,
"id", id,
NULL);
- tp_contact_factory_add_contact (tp_factory, contact);
+ contact_created (tp_factory, contact);
if (priv->ready) {
const gchar *contact_ids[] = {id, NULL};
@@ -1082,7 +1089,7 @@ empathy_tp_contact_factory_get_from_handles (EmpathyTpContactFactory *tp_factory
"account", priv->account,
"handle", handle,
NULL);
- tp_contact_factory_add_contact (tp_factory, contact);
+ contact_created (tp_factory, contact);
contacts = g_list_prepend (contacts, contact);
new_contacts = g_list_prepend (new_contacts, g_object_ref (contact));
}