aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/google-account-setup
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-04-09 18:58:37 +0800
committerMilan Crha <mcrha@src.gnome.org>2009-04-09 18:58:37 +0800
commit2cac53520241cc81ad21594b269308cedb2fbef5 (patch)
tree493b75f55a3e87842c916bf186fab512987d62f0 /plugins/google-account-setup
parent3fa923d170b80ef6da69e24c0a9048f7d7d880ed (diff)
downloadgsoc2013-evolution-2cac53520241cc81ad21594b269308cedb2fbef5.tar.gz
gsoc2013-evolution-2cac53520241cc81ad21594b269308cedb2fbef5.tar.zst
gsoc2013-evolution-2cac53520241cc81ad21594b269308cedb2fbef5.zip
** Fix for bug #574248
2009-04-09 Milan Crha <mcrha@redhat.com> ** Fix for bug #574248 * google-contacts-source.c: (plugin_google_contacts): * google-source.c: (plugin_google): Compare base URI case insensitively. svn path=/trunk/; revision=37507
Diffstat (limited to 'plugins/google-account-setup')
-rw-r--r--plugins/google-account-setup/ChangeLog8
-rw-r--r--plugins/google-account-setup/google-contacts-source.c2
-rw-r--r--plugins/google-account-setup/google-source.c3
3 files changed, 10 insertions, 3 deletions
diff --git a/plugins/google-account-setup/ChangeLog b/plugins/google-account-setup/ChangeLog
index 18fc973fe8..4d8e8b1ecb 100644
--- a/plugins/google-account-setup/ChangeLog
+++ b/plugins/google-account-setup/ChangeLog
@@ -1,3 +1,11 @@
+2009-04-09 Milan Crha <mcrha@redhat.com>
+
+ ** Fix for bug #574248
+
+ * google-contacts-source.c: (plugin_google_contacts):
+ * google-source.c: (plugin_google):
+ Compare base URI case insensitively.
+
2009-04-07 Tobias Mueller <tobiasmue@gnome.org>
** Fixes bug #578034
diff --git a/plugins/google-account-setup/google-contacts-source.c b/plugins/google-account-setup/google-contacts-source.c
index 2ae9fba7b0..6d9697194b 100644
--- a/plugins/google-account-setup/google-contacts-source.c
+++ b/plugins/google-account-setup/google-contacts-source.c
@@ -300,7 +300,7 @@ plugin_google_contacts (EPlugin *epl,
g_object_set_data (G_OBJECT (epl), "gwidget", NULL);
- if (strcmp (base_uri, "google://")) {
+ if (g_ascii_strncasecmp ("google://", base_uri, 9) != 0) {
return NULL;
}
diff --git a/plugins/google-account-setup/google-source.c b/plugins/google-account-setup/google-source.c
index d0ff94b694..181984c538 100644
--- a/plugins/google-account-setup/google-source.c
+++ b/plugins/google-account-setup/google-source.c
@@ -575,8 +575,7 @@ plugin_google (EPlugin *epl,
group = e_source_peek_group (source);
widget = NULL;
- if (!g_str_has_prefix (e_source_group_peek_base_uri (group),
- "Google")) {
+ if (g_ascii_strncasecmp ("google://", e_source_group_peek_base_uri (group), 9) != 0) {
return NULL;
}