summaryrefslogtreecommitdiff
path: root/ubuntu-online-accounts
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-24 13:13:07 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-08-27 15:47:21 +0200
commitc3933b7972672e533c33cf9f401a1dea83ba1368 (patch)
tree80957d6c8a7244c33d7fdc50bbc6e3a5e8f3b60e /ubuntu-online-accounts
parent1b787a9f326fa5d4224f1a0fe7be56f455b2eedd (diff)
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.c7
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);