aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-call-handler.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-12 22:34:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-08-12 22:36:24 +0800
commit2f6aec58f110a13b8c370d676bdd9fb6946893ee (patch)
tree64d9c68db0139ff29b8799d6b3bdddfb0655410a /libempathy/empathy-call-handler.c
parentce0fe44e47aa8c1b5365d1e3140aff59fcfff4f7 (diff)
downloadgsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar.gz
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar.bz2
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar.lz
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar.xz
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.tar.zst
gsoc2013-empathy-2f6aec58f110a13b8c370d676bdd9fb6946893ee.zip
tp-call: add account property
Diffstat (limited to 'libempathy/empathy-call-handler.c')
-rw-r--r--libempathy/empathy-call-handler.c10
1 files changed, 7 insertions, 3 deletions
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");