[gnome-contacts] Make non-"My Contacts" google contacts non-main instead of hidden
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Make non-"My Contacts" google contacts non-main instead of hidden
- Date: Thu, 19 Jan 2012 10:43:06 +0000 (UTC)
commit c9c79e3dd4fa8cd59cdd507cb887c795f677583a
Author: Alexander Larsson <alexl redhat com>
Date: Thu Jan 19 11:40:57 2012 +0100
Make non-"My Contacts" google contacts non-main instead of hidden
src/contacts-contact.vala | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 6fc0e96..dfd6f7d 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -285,12 +285,6 @@ public class Contacts.Contact : GLib.Object {
store.trust_level == PersonaStoreTrust.NONE)
return true;
- // Filter out google contacts not in "My Contacts" as these are not really useful
- if (store.type_id == "eds" && esource_uid_is_google (store.id)) {
- var g = persona as GroupDetails;
- if (g != null && !g.groups.contains (eds_personal_google_group_name ()))
- return true;
- }
}
return false;
@@ -382,6 +376,13 @@ public class Contacts.Contact : GLib.Object {
if (!store.is_primary_store)
return false;
+ // Mark google contacts not in "My Contacts" as non-main
+ if (store.type_id == "eds" && esource_uid_is_google (store.id)) {
+ var g = persona as GroupDetails;
+ if (g != null && !g.groups.contains (eds_personal_google_group_name ()))
+ return false;
+ }
+
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]