aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-10-04 19:09:04 +0800
committerXavier Claessens <xclaesse@gmail.com>2011-11-04 17:10:19 +0800
commitb9aad8c8792dfb03975feaec31bdc90d5157a9d2 (patch)
tree505c6bf8ff5e079e666f6ae0e9a8c7bbcb4421f2 /libempathy
parent84d946f81001605bc6608e8a0ad5a19eaa88136c (diff)
downloadgsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar.gz
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar.bz2
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar.lz
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar.xz
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.tar.zst
gsoc2013-empathy-b9aad8c8792dfb03975feaec31bdc90d5157a9d2.zip
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
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-auth-factory.c13
-rw-r--r--libempathy/empathy-auth-factory.h2
2 files changed, 4 insertions, 11 deletions
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
diff --git a/libempathy/empathy-auth-factory.h b/libempathy/empathy-auth-factory.h
index e9a670ceb..e84c13bcc 100644
--- a/libempathy/empathy-auth-factory.h
+++ b/libempathy/empathy-auth-factory.h
@@ -59,7 +59,7 @@ GType empathy_auth_factory_get_type (void);
(G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_AUTH_FACTORY, \
EmpathyAuthFactoryClass))
-EmpathyAuthFactory * empathy_auth_factory_dup_singleton (void);
+EmpathyAuthFactory * empathy_auth_factory_new (TpSimpleClientFactory *factory);
gboolean empathy_auth_factory_register (EmpathyAuthFactory *self,
GError **error);