soc.2009.telepathy: 26baf7d9: Create the AM and CD proxies using the M...

sttwister at gmail.com sttwister at gmail.com
Tue Aug 11 11:40:30 EDT 2009


-----------------------------------------------------------------
Revision: 26baf7d9a524b1e05f6e829867e08b63425e3ed4
Ancestor: 14520c5975f08af8cdffc41486ee5436bec3707e
Author: sttwister at gmail.com
Date: 2009-08-11T15:38:10
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/26baf7d9a524b1e05f6e829867e08b63425e3ed4

Modified files:
        libpurple/protocols/telepathy/telepathy.c

ChangeLog: 

Create the AM and CD proxies using the MC5 name for auto-activation

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	4f0c44a80e2e23115d2816e131585375a325ae25
+++ libpurple/protocols/telepathy/telepathy.c	4ae89ac4bdbbf6026b941f2fc4d3014169147fbb
@@ -1192,7 +1192,13 @@ G_MODULE_EXPORT gboolean purple_init_plu
 	}
 
 	/* Create an AccountManager proxy */
-	account_Manager = tp_account_manager_new(daemon);
+	/* account_Manager = tp_account_manager_new(daemon); */
+	account_Manager = TP_ACCOUNT_MANAGER (g_object_new (TP_TYPE_ACCOUNT_MANAGER,
+		"dbus-daemon", daemon,
+		"dbus-connection", ((TpProxy *) daemon)->dbus_connection,
+		"bus-name", "org.freedesktop.Telepathy.MissionControl5",
+		"object-path", "/org/freedesktop/Telepathy/AccountManager",
+		NULL));
 
 	if (account_Manager == NULL)
 	{
@@ -1201,7 +1207,14 @@ G_MODULE_EXPORT gboolean purple_init_plu
 	}
 
 	/* Create an AccountManager proxy */
-	channel_Dispatcher = tp_channel_dispatcher_new(daemon);
+	/* channel_Dispatcher = tp_channel_dispatcher_new(daemon); */
+	channel_Dispatcher = TP_CHANNEL_DISPATCHER (
+		g_object_new (TP_TYPE_CHANNEL_DISPATCHER,
+		"dbus-daemon", daemon,
+		"dbus-connection", ((TpProxy *) daemon)->dbus_connection,
+		"bus-name", "org.freedesktop.Telepathy.MissionControl5",
+		"object-path", "/org/freedesktop/Telepathy/ChannelDispatcher",
+		NULL));
 
 	if (channel_Dispatcher == NULL)
 	{


More information about the Commits mailing list