summaryrefslogtreecommitdiff
path: root/telepathy-logger/text-channel.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-03 17:24:49 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-07-04 17:25:08 +0200
commitd9b0a90777b544b2d6db688b403ae14c2defd99a (patch)
tree06b76b7bf8ed73ea5819b020656a765546ab69ae /telepathy-logger/text-channel.c
parenta539396ff665b952a02dd3f0cda0360d65055450 (diff)
downloadtelepathy-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/text-channel.c')
-rw-r--r--telepathy-logger/text-channel.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/telepathy-logger/text-channel.c b/telepathy-logger/text-channel.c
index c79c723..6307f9e 100644
--- a/telepathy-logger/text-channel.c
+++ b/telepathy-logger/text-channel.c
@@ -835,7 +835,6 @@ _tpl_text_channel_init (TplTextChannel *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 #TplTextChannel
* @error: location of the GError, used in case a problem is raised while
* creating the channel
*
@@ -858,7 +857,6 @@ TplTextChannel *
_tpl_text_channel_new (TpConnection *conn,
const gchar *object_path,
GHashTable *tp_chan_props,
- TpAccount *account,
GError **error)
{
TpProxy *conn_proxy = TP_PROXY (conn);
@@ -867,7 +865,6 @@ _tpl_text_channel_new (TpConnection *conn,
/* Do what tpl_channel_new does + set TplTextChannel specific */
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);
@@ -884,7 +881,7 @@ _tpl_text_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;
}