aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-account-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:48:36 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:48:36 +0800
commitd374b59bc0a0baf9fdfcb3528162cbf389b7f26c (patch)
treeaec6df9cb672e573b8fa544ba65eeed709a9b7e7 /libempathy/empathy-account-manager.c
parentdcc292dc2b1fb67d63403618803a5e82e8ebfc9d (diff)
downloadgsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar.gz
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar.bz2
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar.lz
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar.xz
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.tar.zst
gsoc2013-empathy-d374b59bc0a0baf9fdfcb3528162cbf389b7f26c.zip
Use new singleton policy for EmpathyAccountManager.
svn path=/trunk/; revision=2074
Diffstat (limited to 'libempathy/empathy-account-manager.c')
-rw-r--r--libempathy/empathy-account-manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy/empathy-account-manager.c b/libempathy/empathy-account-manager.c
index b56a67d98..aa45c3209 100644
--- a/libempathy/empathy-account-manager.c
+++ b/libempathy/empathy-account-manager.c
@@ -96,7 +96,10 @@ account_data_new_default (MissionControl *mc,
actual_c = mission_control_get_connection_status (mc, account, &err);
if (err != NULL)
- actual_c = TP_CONNECTION_STATUS_DISCONNECTED;
+ {
+ actual_c = TP_CONNECTION_STATUS_DISCONNECTED;
+ g_error_free (err);
+ }
return account_data_new (actual_p, actual_c, mc_account_is_enabled (account));
}
@@ -538,7 +541,7 @@ empathy_account_manager_class_init (EmpathyAccountManagerClass *klass)
/* public methods */
EmpathyAccountManager *
-empathy_account_manager_new (void)
+empathy_account_manager_dup_singleton (void)
{
return g_object_new (EMPATHY_TYPE_ACCOUNT_MANAGER, NULL);
}