From 3b61b734df953582fe48cb7626709dca35d3a128 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 15 Jul 2011 16:52:25 +0200 Subject: Always create TpChannelRequest objects through a factory --- telepathy-glib/account-channel-request.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'telepathy-glib/account-channel-request.c') 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 #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); -- cgit v1.2.1