diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-07-15 16:52:25 +0200 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-07-20 15:00:24 +0200 |
commit | 3b61b734df953582fe48cb7626709dca35d3a128 (patch) | |
tree | 3ec7aeacc4abd685faa12ea3e33e438680fa7465 /telepathy-glib/account-channel-request.c | |
parent | 34dd2ad3f2aaa2a5a8167c3af1829ec4ad064787 (diff) | |
download | telepathy-glib-3b61b734df953582fe48cb7626709dca35d3a128.tar.gz |
Always create TpChannelRequest objects through a factory
Diffstat (limited to 'telepathy-glib/account-channel-request.c')
-rw-r--r-- | telepathy-glib/account-channel-request.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/telepathy-glib/account-channel-request.c b/telepathy-glib/account-channel-request.c index 748659867..8deb3d265 100644 --- a/telepathy-glib/account-channel-request.c +++ b/telepathy-glib/account-channel-request.c @@ -83,6 +83,7 @@ #define DEBUG_FLAG TP_DEBUG_CLIENT #include "telepathy-glib/debug-internal.h" +#include <telepathy-glib/simple-client-factory-internal.h> #include "telepathy-glib/_gen/signals-marshal.h" struct _TpAccountChannelRequestClass { @@ -794,9 +795,9 @@ acr_request_cb (TpChannelDispatcher *cd, DEBUG ("Got ChannelRequest: %s", channel_request_path); - self->priv->chan_request = tp_channel_request_new ( - self->priv->dbus, channel_request_path, NULL, &err); - + self->priv->chan_request = _tp_simple_client_factory_ensure_channel_request ( + tp_proxy_get_factory (self->priv->account), channel_request_path, NULL, + &err); if (self->priv->chan_request == NULL) { DEBUG ("Failed to create ChannelRequest: %s", err->message); |