[folks] eds: Add gender as an always-writeable property



commit 05f2f829ed790183948a13337c55c482f93d4ed8
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Sep 17 19:19:43 2011 +0100

    eds: Add gender as an always-writeable property
    
    This is because it uses a custom vCard attribute, so no EDS backend actually
    says it's supported. We assume that the backends will save these custom
    vCard attributes safely.

 backends/eds/lib/edsf-persona-store.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona-store.vala b/backends/eds/lib/edsf-persona-store.vala
index 74735b6..4ad5d9d 100644
--- a/backends/eds/lib/edsf-persona-store.vala
+++ b/backends/eds/lib/edsf-persona-store.vala
@@ -649,12 +649,14 @@ public class Edsf.PersonaStore : Folks.PersonaStore
                 {
                   string[] fields = supported_fields.split (",");
 
-                  /* We always support local-ids and web-service-addresses
-                   * because we use custom vCard attributes for them. */
+                  /* We always support local-ids, web-service-addresses and
+                   * gender because we use custom vCard attributes for them. */
                   prop_set.add (Folks.PersonaStore.detail_key (
                       PersonaDetail.LOCAL_IDS));
                   prop_set.add (Folks.PersonaStore.detail_key (
                       PersonaDetail.WEB_SERVICE_ADDRESSES));
+                  prop_set.add (Folks.PersonaStore.detail_key (
+                      PersonaDetail.GENDER));
 
                   foreach (unowned string field in fields)
                     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]