[gnome-contacts] Show Google Circles personas better
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Show Google Circles personas better
- Date: Mon, 23 Jan 2012 16:18:14 +0000 (UTC)
commit 13a86e086bb0225077bb1cb8c631282b070bae97
Author: Alexander Larsson <alexl redhat com>
Date: Mon Jan 23 11:20:05 2012 +0100
Show Google Circles personas better
src/contacts-contact.vala | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 66c8203..83df7ec 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -1121,8 +1121,19 @@ public class Contacts.Contact : GLib.Object {
unowned string? eds_name = lookup_esource_name_by_uid_for_contact (store.id);
if (eds_name != null) {
var g = persona as GroupDetails;
- if (g != null && !g.groups.contains (eds_personal_google_group_name ()))
+ if (g != null && !g.groups.contains (eds_personal_google_group_name ())) {
+ bool is_profile = false;
+ var u = persona as UrlDetails;
+ if (u != null && u.urls.size == 1) {
+ foreach (var url in u.urls) {
+ if (/https?:\/\/www.google.com\/profiles\/[0-9]+$/.match(url.value))
+ is_profile = true;
+ }
+ }
+ if (is_profile)
+ return _("Google Circles");
return _("Google Other Contact");
+ }
return eds_name;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]