From 2b35d8ec10eb633fdbd0cece1ce9fe0511f94aef Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 14 Sep 2012 15:12:00 +0100 Subject: [PATCH 16/21] McdChannel: use the TpConnection's factory to make TpChannel objects Signed-off-by: Simon McVittie Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391 --- src/mcd-channel.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/mcd-channel.c b/src/mcd-channel.c index b454480..1a185a5 100644 --- a/src/mcd-channel.c +++ b/src/mcd-channel.c @@ -604,9 +604,10 @@ mcd_channel_new_from_properties (TpConnection *connection, TpChannel *tp_chan; GError *error = NULL; + tp_chan = tp_simple_client_factory_ensure_channel ( + tp_proxy_get_factory (connection), connection, object_path, + properties, &error); - tp_chan = tp_channel_new_from_properties (connection, object_path, - properties, &error); if (G_UNLIKELY (error)) { g_warning ("%s: got error: %s", G_STRFUNC, error->message); @@ -689,8 +690,11 @@ _mcd_channel_create_proxy (McdChannel *channel, TpConnection *connection, GError *error = NULL; g_return_val_if_fail (MCD_IS_CHANNEL (channel), FALSE); - tp_chan = tp_channel_new_from_properties (connection, object_path, - properties, &error); + + tp_chan = tp_simple_client_factory_ensure_channel ( + tp_proxy_get_factory (connection), connection, object_path, + properties, &error); + if (G_UNLIKELY (error)) { g_warning ("%s: got error: %s", G_STRFUNC, error->message); -- 1.7.10.4