From b9aad8c8792dfb03975feaec31bdc90d5157a9d2 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 4 Oct 2011 13:09:04 +0200 Subject: empathy-auth-client: use a TpSimpleClientFactory This prevent TpBaseClient to create a full TpAccountManager and allow us to prepare TP_ACCOUNT_FEATURE_STORAGE feature on accounts --- libempathy/empathy-auth-factory.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'libempathy/empathy-auth-factory.c') diff --git a/libempathy/empathy-auth-factory.c b/libempathy/empathy-auth-factory.c index 6368b1d7d..663dce050 100644 --- a/libempathy/empathy-auth-factory.c +++ b/libempathy/empathy-auth-factory.c @@ -565,19 +565,12 @@ empathy_auth_factory_class_init (EmpathyAuthFactoryClass *klass) } EmpathyAuthFactory * -empathy_auth_factory_dup_singleton (void) +empathy_auth_factory_new (TpSimpleClientFactory *factory) { - EmpathyAuthFactory *out = NULL; - TpDBusDaemon *bus; - - bus = tp_dbus_daemon_dup (NULL); - out = g_object_new (EMPATHY_TYPE_AUTH_FACTORY, - "dbus-daemon", bus, + return g_object_new (EMPATHY_TYPE_AUTH_FACTORY, + "factory", factory, "name", "Empathy.Auth", NULL); - g_object_unref (bus); - - return out; } gboolean -- cgit v1.2.3