summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-11-08 12:01:41 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-11-23 11:31:18 +0000
commit1d6dfb1b00b9b527cdfc3f5203a69317a7ef8728 (patch)
treeaf440d6f9a6986d5de8e647882149243922f98af
parent9d6b555d036085af6c34dca850dc590d69d7f4e1 (diff)
account-manager: also add the client factory to the Yts AM
TpYtsAM can't be a TpAM subclass which is a shame, but not so bad. By also setting the factory property on TpYtsAM as our TpYtsClientFactory it means people can call tp_proxy_get_factory on TpYtsAM and get the correct factory. Hooray, this might actually work! Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r--telepathy-ytstenut-glib/account-manager.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/telepathy-ytstenut-glib/account-manager.c b/telepathy-ytstenut-glib/account-manager.c
index 5389927..9d883df 100644
--- a/telepathy-ytstenut-glib/account-manager.c
+++ b/telepathy-ytstenut-glib/account-manager.c
@@ -150,14 +150,16 @@ tp_yts_account_manager_new (TpDBusDaemon *bus_daemon)
g_return_val_if_fail (TP_IS_DBUS_DAEMON (bus_daemon), NULL);
+ factory = tp_yts_client_factory_new (bus_daemon);
+
self = TP_YTS_ACCOUNT_MANAGER (g_object_new (TP_TYPE_YTS_ACCOUNT_MANAGER,
"dbus-daemon", bus_daemon,
"dbus-connection", ((TpProxy *) bus_daemon)->dbus_connection,
"bus-name", MC5_BUS_NAME,
"object-path", TP_YTS_ACCOUNT_MANAGER_OBJECT_PATH,
+ "factory", factory,
NULL));
- factory = tp_yts_client_factory_new (bus_daemon);
self->priv->account_manager = tp_account_manager_new_with_factory (factory);
g_object_unref (factory);