empathy r1853 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1853 - trunk/libempathy
- Date: Fri, 21 Nov 2008 16:21:14 +0000 (UTC)
Author: xclaesse
Date: Fri Nov 21 16:21:13 2008
New Revision: 1853
URL: http://svn.gnome.org/viewvc/empathy?rev=1853&view=rev
Log:
empathy-tp-contact-factory: factor out contact_created
Modified:
trunk/libempathy/empathy-tp-contact-factory.c
Modified: trunk/libempathy/empathy-tp-contact-factory.c
==============================================================================
--- trunk/libempathy/empathy-tp-contact-factory.c (original)
+++ trunk/libempathy/empathy-tp-contact-factory.c Fri Nov 21 16:21:13 2008
@@ -972,6 +972,13 @@
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 @@
"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 @@
"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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]