aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-event-manager.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-02-11 21:29:02 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-25 15:22:41 +0800
commit64d8e268e6be5afc2afd80ff93d9803318dc5953 (patch)
treee11250b06398ad3c24a5bfe80e59ab81c3325c11 /src/empathy-event-manager.c
parent21bde4f1a8c82330ccb49eb6bdc00a14de7595aa (diff)
downloadgsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar.gz
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar.bz2
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar.lz
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar.xz
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.tar.zst
gsoc2013-empathy-64d8e268e6be5afc2afd80ff93d9803318dc5953.zip
Use the EmpathyChannelFactory with all components creating EmpathyTpChat
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r--src/empathy-event-manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c
index f75fbc54b..770b22b43 100644
--- a/src/empathy-event-manager.c
+++ b/src/empathy-event-manager.c
@@ -29,6 +29,7 @@
#include <telepathy-glib/interfaces.h>
#include <telepathy-glib/simple-approver.h>
+#include <libempathy/empathy-channel-factory.h>
#include <libempathy/empathy-presence-manager.h>
#include <libempathy/empathy-tp-contact-factory.h>
#include <libempathy/empathy-contact-manager.h>
@@ -1249,6 +1250,7 @@ empathy_event_manager_init (EmpathyEventManager *manager)
EMPATHY_TYPE_EVENT_MANAGER, EmpathyEventManagerPriv);
TpDBusDaemon *dbus;
GError *error = NULL;
+ EmpathyChannelFactory *factory;
manager->priv = priv;
@@ -1332,6 +1334,11 @@ empathy_event_manager_init (EmpathyEventManager *manager)
TP_IFACE_CHANNEL_INTERFACE_SASL_AUTHENTICATION,
NULL));
+ factory = empathy_channel_factory_dup ();
+
+ tp_base_client_set_channel_factory (priv->approver,
+ TP_CLIENT_CHANNEL_FACTORY (factory));
+
if (!tp_base_client_register (priv->approver, &error))
{
DEBUG ("Failed to register Approver: %s", error->message);
@@ -1344,6 +1351,7 @@ empathy_event_manager_init (EmpathyEventManager *manager)
g_error_free (error);
}
+ g_object_unref (factory);
g_object_unref (dbus);
}