summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2010-10-27 16:18:51 +0100
committerVivek Dasmohapatra <vivek@collabora.co.uk>2010-10-27 16:18:51 +0100
commit0b9464ee78eb063e1ee8bf7b833a6bd378f1fa90 (patch)
treec68d21b9a2774cf3b8964858571f2d3060232b68
parent1798389710ce878298598c9ffc4b156abc708e00 (diff)
downloadtelepathy-mission-control-0b9464ee78eb063e1ee8bf7b833a6bd378f1fa90.tar.gz
Use the new AG_SERVICE macro instead of hardiwring "IM" everywhere.
-rw-r--r--src/mcd-account-manager-sso.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mcd-account-manager-sso.c b/src/mcd-account-manager-sso.c
index d08dc3b7..dc332db7 100644
--- a/src/mcd-account-manager-sso.c
+++ b/src/mcd-account-manager-sso.c
@@ -245,7 +245,7 @@ static gboolean
_ag_account_select_default_im_service (AgAccount *account)
{
gboolean have_im_service = FALSE;
- GList *first = ag_account_list_services_by_type (account, "IM");
+ GList *first = ag_account_list_services_by_type (account, AG_SERVICE);
if (first != NULL && first->data != NULL)
{
@@ -505,7 +505,7 @@ static void _sso_toggled (GObject *object,
{
const gchar *service_type = ag_service_get_service_type (service);
- if (!g_str_equal (service_type, "IM"))
+ if (!g_str_equal (service_type, AG_SERVICE))
return;
}
@@ -1245,7 +1245,7 @@ _load_from_libaccounts (McdAccountManagerSso *sso,
const McpAccountManager *am)
{
GList *ag_id;
- GList *ag_ids = ag_manager_list_by_service_type (sso->ag_manager, "IM");
+ GList *ag_ids = ag_manager_list_by_service_type (sso->ag_manager, AG_SERVICE);
for (ag_id = ag_ids; ag_id != NULL; ag_id = g_list_next (ag_id))
{
@@ -1372,7 +1372,7 @@ _list (const McpAccountStorage *self,
if (!sso->loaded)
_load_from_libaccounts (sso, am);
- ag_ids = ag_manager_list_by_service_type (sso->ag_manager, "IM");
+ ag_ids = ag_manager_list_by_service_type (sso->ag_manager, AG_SERVICE);
for (ag_id = ag_ids; ag_id != NULL; ag_id = g_list_next (ag_id))
{
@@ -1450,7 +1450,7 @@ _find_account (McdAccountManagerSso *sso,
g_return_val_if_fail (account_id != NULL, found);
- ag_ids = ag_manager_list_by_service_type (sso->ag_manager, "IM");
+ ag_ids = ag_manager_list_by_service_type (sso->ag_manager, AG_SERVICE);
for (ag_id = ag_ids; ag_id != NULL; ag_id = g_list_next (ag_id))
{