aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-accounts-common.c')
-rw-r--r--src/empathy-accounts-common.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/empathy-accounts-common.c b/src/empathy-accounts-common.c
index 334f3cba8..311a5f600 100644
--- a/src/empathy-accounts-common.c
+++ b/src/empathy-accounts-common.c
@@ -71,6 +71,19 @@ empathy_accounts_has_non_salut_accounts (TpAccountManager *manager)
return ret;
}
+gboolean
+empathy_accounts_has_accounts (TpAccountManager *manager)
+{
+ GList *accounts;
+ gboolean has_accounts;
+
+ accounts = tp_account_manager_get_valid_accounts (manager);
+ has_accounts = (accounts != NULL);
+ g_list_free (accounts);
+
+ return has_accounts;
+}
+
void
empathy_accounts_import (TpAccountManager *account_mgr,
EmpathyConnectionManagers *cm_mgr)