diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-03 17:24:49 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-07-04 17:25:08 +0200 |
commit | d9b0a90777b544b2d6db688b403ae14c2defd99a (patch) | |
tree | 06b76b7bf8ed73ea5819b020656a765546ab69ae /telepathy-logger/call-channel.c | |
parent | a539396ff665b952a02dd3f0cda0360d65055450 (diff) | |
download | telepathy-logger-d9b0a90777b544b2d6db688b403ae14c2defd99a.tar.gz |
TplCallChannel, TplTextChannel: Do not take TpAccount arg in constructor
It can be taken from the TpConnection
Diffstat (limited to 'telepathy-logger/call-channel.c')
-rw-r--r-- | telepathy-logger/call-channel.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/telepathy-logger/call-channel.c b/telepathy-logger/call-channel.c index 3c188c0..29fc57a 100644 --- a/telepathy-logger/call-channel.c +++ b/telepathy-logger/call-channel.c @@ -470,7 +470,6 @@ _tpl_call_channel_init (TplCallChannel *self) * @object_path: the channel's DBus path * @tp_chan_props: channel's immutable properties, obtained for example by * %tp_channel_borrow_immutable_properties() - * @account: TpAccount instance, related to the new #TplCallChannel * @error: location of the GError, used in case a problem is raised while * creating the channel * @@ -493,7 +492,6 @@ TplCallChannel * _tpl_call_channel_new (TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, - TpAccount *account, GError **error) { TpProxy *conn_proxy = TP_PROXY (conn); @@ -503,7 +501,6 @@ _tpl_call_channel_new (TpConnection *conn, * specific properties */ g_return_val_if_fail (TP_IS_CONNECTION (conn), NULL); - g_return_val_if_fail (TP_IS_ACCOUNT (account), NULL); g_return_val_if_fail (!TPL_STR_EMPTY (object_path), NULL); g_return_val_if_fail (tp_chan_props != NULL, NULL); @@ -519,7 +516,7 @@ _tpl_call_channel_new (TpConnection *conn, "channel-properties", tp_chan_props, NULL); - self->priv->account = g_object_ref (account); + self->priv->account = g_object_ref (tp_connection_get_account (conn)); return self; } |