[empathy] Telepathy service is "google-talk" not "google"
- From: Xavier Claessens <xclaesse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] Telepathy service is "google-talk" not "google"
- Date: Mon, 20 Aug 2012 11:45:28 +0000 (UTC)
commit 1bca289287498a3b4b091b074e2ad954dec6b9d2
Author: Xavier Claessens <xavier claessens collabora co uk>
Date: Mon Aug 20 13:23:23 2012 +0200
Telepathy service is "google-talk" not "google"
https://bugzilla.gnome.org/show_bug.cgi?id=681444
.../mc-plugin/mcp-account-manager-uoa.c | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
index d30ab13..20b8f09 100644
--- a/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
+++ b/ubuntu-online-accounts/mc-plugin/mcp-account-manager-uoa.c
@@ -430,6 +430,17 @@ account_manager_uoa_list (const McpAccountStorage *storage,
return accounts;
}
+static const gchar *
+provider_to_tp_service_name (const gchar *provider_name)
+{
+ /* Well known services are defined in Telepathy spec:
+ * http://telepathy.freedesktop.org/spec/Account.html#Property:Service */
+ if (!tp_strdiff (provider_name, "google"))
+ return "google-talk";
+
+ return provider_name;
+}
+
static gboolean
account_manager_uoa_get (const McpAccountStorage *storage,
const McpAccountManager *am,
@@ -487,7 +498,7 @@ account_manager_uoa_get (const McpAccountStorage *storage,
if (key == NULL || !tp_strdiff (key, "Service"))
{
mcp_account_manager_set_value (am, account_name, "Service",
- ag_account_get_provider_name (account));
+ provider_to_tp_service_name (ag_account_get_provider_name (account)));
handled = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]