summaryrefslogtreecommitdiff
path: root/telepathy-glib/account-channel-request.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-07-15 16:52:25 +0200
committerXavier Claessens <xclaesse@gmail.com>2011-07-20 15:00:24 +0200
commit3b61b734df953582fe48cb7626709dca35d3a128 (patch)
tree3ec7aeacc4abd685faa12ea3e33e438680fa7465 /telepathy-glib/account-channel-request.c
parent34dd2ad3f2aaa2a5a8167c3af1829ec4ad064787 (diff)
downloadtelepathy-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.c7
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);