diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-08-24 19:13:07 +0800 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-08-27 21:47:21 +0800 |
commit | c3933b7972672e533c33cf9f401a1dea83ba1368 (patch) | |
tree | 80957d6c8a7244c33d7fdc50bbc6e3a5e8f3b60e /ubuntu-online-accounts | |
parent | 1b787a9f326fa5d4224f1a0fe7be56f455b2eedd (diff) | |
download | gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar.gz gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar.bz2 gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar.lz gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar.xz gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.tar.zst gsoc2013-empathy-c3933b7972672e533c33cf9f401a1dea83ba1368.zip |
UOA: Use an AgManager singleton
This is especially useful in empathy-keyring where it would reload
all accounts each time we set a password.
https://bugzilla.gnome.org/show_bug.cgi?id=680776
Diffstat (limited to 'ubuntu-online-accounts')
-rw-r--r-- | ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c index 7431abc08..939912aad 100644 --- a/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c +++ b/ubuntu-online-accounts/cc-plugins/empathy-accounts-plugin.c @@ -23,6 +23,7 @@ #include "empathy-accounts-plugin.h" #include <libempathy/empathy-client-factory.h> +#include <libempathy/empathy-uoa-utils.h> #include "empathy-accounts-plugin-widget.h" @@ -38,9 +39,13 @@ widget_done_cb (EmpathyAccountsPluginWidget *widget, static GtkWidget * empathy_accounts_plugin_build_widget (ApPlugin *plugin) { + AgAccount *account; GtkWidget *widget; - widget = empathy_accounts_plugin_widget_new (ap_plugin_get_account (plugin)); + account = ap_plugin_get_account (plugin); + empathy_uoa_manager_set_default (ag_account_get_manager (account)); + + widget = empathy_accounts_plugin_widget_new (account); g_signal_connect (widget, "done", G_CALLBACK (widget_done_cb), plugin); |