From 2f6aec58f110a13b8c370d676bdd9fb6946893ee Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 12 Aug 2010 16:34:52 +0200 Subject: tp-call: add account property --- libempathy/empathy-call-handler.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libempathy/empathy-call-handler.c') diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c index a895f5340..dc734b2e5 100644 --- a/libempathy/empathy-call-handler.c +++ b/libempathy/empathy-call-handler.c @@ -762,9 +762,11 @@ empathy_call_handler_request_cb (GObject *source, EmpathyCallHandlerPriv *priv = GET_PRIV (self); TpChannel *channel; GError *error = NULL; + TpAccountChannelRequest *req = TP_ACCOUNT_CHANNEL_REQUEST (source); + TpAccount *account; - channel = tp_account_channel_request_create_and_handle_channel_finish ( - TP_ACCOUNT_CHANNEL_REQUEST (source), result, NULL, &error); + channel = tp_account_channel_request_create_and_handle_channel_finish (req, + result, NULL, &error); if (channel == NULL) { DEBUG ("Failed to create the channel: %s", error->message); @@ -772,7 +774,9 @@ empathy_call_handler_request_cb (GObject *source, return; } - priv->call = empathy_tp_call_new (channel); + account = tp_account_channel_request_get_account (req); + + priv->call = empathy_tp_call_new (account, channel); g_object_notify (G_OBJECT (self), "tp-call"); -- cgit v1.2.3