diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2011-10-04 19:09:04 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2011-11-04 17:10:19 +0800 |
commit | b9aad8c8792dfb03975feaec31bdc90d5157a9d2 (patch) | |
tree | 505c6bf8ff5e079e666f6ae0e9a8c7bbcb4421f2 /src/empathy-auth-client.c | |
parent | 84d946f81001605bc6608e8a0ad5a19eaa88136c (diff) | |
download | gsoc2013-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 'src/empathy-auth-client.c')
-rw-r--r-- | src/empathy-auth-client.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c index b7988e07e..bb7446847 100644 --- a/src/empathy-auth-client.c +++ b/src/empathy-auth-client.c @@ -243,6 +243,8 @@ main (int argc, GError *error = NULL; EmpathyAuthFactory *factory; TpDebugSender *debug_sender; + TpSimpleClientFactory *tp_factory; + TpDBusDaemon *dbus; g_thread_init (NULL); @@ -276,7 +278,15 @@ main (int argc, g_log_set_default_handler (tp_debug_sender_log_handler, G_LOG_DOMAIN); #endif - factory = empathy_auth_factory_dup_singleton (); + dbus = tp_dbus_daemon_dup (NULL); + tp_factory = tp_simple_client_factory_new (dbus); + tp_simple_client_factory_add_account_features_varargs (tp_factory, + TP_ACCOUNT_FEATURE_STORAGE, + 0); + + factory = empathy_auth_factory_new (tp_factory); + g_object_unref (tp_factory); + g_object_unref (dbus); g_signal_connect (factory, "new-server-tls-handler", G_CALLBACK (auth_factory_new_tls_handler_cb), NULL); |