diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-09-14 15:12:00 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-09-27 18:36:28 +0100 |
commit | 2b35d8ec10eb633fdbd0cece1ce9fe0511f94aef (patch) | |
tree | 1076d32678f54e81d8f495a2142e347fa66a05e6 | |
parent | a62c0648bcbf7347012197a8e68c6fad3f5b3ee9 (diff) |
McdChannel: use the TpConnection's factory to make TpChannel objects
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55391
-rw-r--r-- | src/mcd-channel.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mcd-channel.c b/src/mcd-channel.c index b4544808..1a185a56 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); |