diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-12 22:37:52 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-08-12 22:37:52 +0800 |
commit | 4454890cf434cece46d5cf56b3e23b500cb6ac43 (patch) | |
tree | 196e8c48080602df3dba5e4ed349532ac7e0065b | |
parent | 2f6aec58f110a13b8c370d676bdd9fb6946893ee (diff) | |
download | gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar.gz gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar.bz2 gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar.lz gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar.xz gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.tar.zst gsoc2013-empathy-4454890cf434cece46d5cf56b3e23b500cb6ac43.zip |
empathy_tp_call_get_connection_manager: use the account directly
-rw-r--r-- | libempathy/empathy-tp-call.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index 97b8bce1d..66fd3f870 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -775,21 +775,8 @@ const gchar * empathy_tp_call_get_connection_manager (EmpathyTpCall *self) { EmpathyTpCallPriv *priv = GET_PRIV (self); - TpConnection *conn; - TpAccount *account; - - if (priv->channel == NULL) - return NULL; - - conn = tp_channel_borrow_connection (priv->channel); - if (conn == NULL) - return NULL; - - account = empathy_get_account_for_connection (conn); - if (account == NULL) - return NULL; - return tp_account_get_connection_manager (account); + return tp_account_get_connection_manager (priv->account); } gboolean |