From b8ff75d21c1be60e6df472a35599a9e22046a92b Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Mon, 10 May 2010 12:36:28 +0200 Subject: =?UTF-8?q?Port=C2=A0to=C2=A0new=C2=A0EmpathyTpContactFactory?= =?UTF-8?q?=C2=A0API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libempathy/empathy-tp-call.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'libempathy/empathy-tp-call.c') diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index 32a09255f..78ee6d005 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -264,7 +264,7 @@ tp_call_request_streams_for_capabilities (EmpathyTpCall *call, } static void -tp_call_got_contact_cb (EmpathyTpContactFactory *factory, +tp_call_got_contact_cb (TpConnection *connection, EmpathyContact *contact, const GError *error, gpointer user_data, @@ -303,15 +303,12 @@ tp_call_update_status (EmpathyTpCall *call) { if (priv->contact == NULL && iter.element != self_handle) { - EmpathyTpContactFactory *factory; TpConnection *connection; /* We found the remote contact */ connection = tp_channel_borrow_connection (priv->channel); - factory = empathy_tp_contact_factory_dup_singleton (connection); - empathy_tp_contact_factory_get_from_handle (factory, iter.element, + empathy_tp_contact_factory_get_from_handle (connection, iter.element, tp_call_got_contact_cb, NULL, NULL, G_OBJECT (call)); - g_object_unref (factory); } if (priv->status == EMPATHY_TP_CALL_STATUS_PENDING && -- cgit v1.2.3