diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-02-11 21:29:02 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-05-25 15:22:41 +0800 |
commit | 64d8e268e6be5afc2afd80ff93d9803318dc5953 (patch) | |
tree | e11250b06398ad3c24a5bfe80e59ab81c3325c11 /src/empathy-chat-manager.c | |
parent | 21bde4f1a8c82330ccb49eb6bdc00a14de7595aa (diff) | |
download | gsoc2013-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-chat-manager.c')
-rw-r--r-- | src/empathy-chat-manager.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-chat-manager.c b/src/empathy-chat-manager.c index d8e573320..8bdc97e90 100644 --- a/src/empathy-chat-manager.c +++ b/src/empathy-chat-manager.c @@ -20,6 +20,7 @@ #include <telepathy-glib/telepathy-glib.h> #include <telepathy-glib/proxy-subclass.h> +#include <libempathy/empathy-channel-factory.h> #include <libempathy/empathy-chatroom-manager.h> #include <libempathy/empathy-request-util.h> #include <libempathy/empathy-utils.h> @@ -303,6 +304,7 @@ empathy_chat_manager_init (EmpathyChatManager *self) EmpathyChatManagerPriv *priv = GET_PRIV (self); TpDBusDaemon *dbus; GError *error = NULL; + EmpathyChannelFactory *factory; priv->closed_queue = g_queue_new (); priv->messages = g_hash_table_new_full (g_str_hash, g_str_equal, @@ -345,11 +347,18 @@ empathy_chat_manager_init (EmpathyChatManager *self) TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE, NULL)); + factory = empathy_channel_factory_dup (); + + tp_base_client_set_channel_factory (priv->handler, + TP_CLIENT_CHANNEL_FACTORY (factory)); + if (!tp_base_client_register (priv->handler, &error)) { g_critical ("Failed to register text handler: %s", error->message); g_error_free (error); } + + g_object_unref (factory); } static void |