aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-05 00:52:37 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-03-05 01:09:04 +0800
commit475ab0143677586dd29be933795e88c35b4a2706 (patch)
treed81749804452c7f3d5ff647e31330f5d10bab33a /src
parent8c8ad6b6959801d97881dba347ce8827d470c7a2 (diff)
downloadgsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar.gz
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar.bz2
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar.lz
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar.xz
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.tar.zst
gsoc2013-empathy-475ab0143677586dd29be933795e88c35b4a2706.zip
add empathy_accounts_has_accounts
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-common.c13
-rw-r--r--src/empathy-accounts-common.h2
2 files changed, 15 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)
diff --git a/src/empathy-accounts-common.h b/src/empathy-accounts-common.h
index 2bd51bf0d..71d2dc3a1 100644
--- a/src/empathy-accounts-common.h
+++ b/src/empathy-accounts-common.h
@@ -24,6 +24,8 @@
gboolean empathy_accounts_has_non_salut_accounts (TpAccountManager *manager);
+gboolean empathy_accounts_has_accounts (TpAccountManager *manager);
+
void empathy_accounts_show_accounts_ui (TpAccountManager *manager,
TpAccount *account,
GCallback window_destroyed_cb);