[folks] eds: Put email_addresses_ro back into Edsf.Persona. eds: Remove extra whitespace.



commit 742e26cdff4536e50f31a885197c73bb00d69026
Author: Jeremy Whiting <jpwhiting kde org>
Date:   Mon Oct 29 16:26:21 2012 -0600

    eds: Put email_addresses_ro back into Edsf.Persona.
    eds: Remove extra whitespace.

 backends/eds/lib/edsf-persona.vala |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/backends/eds/lib/edsf-persona.vala b/backends/eds/lib/edsf-persona.vala
index 71d2c00..64069ed 100644
--- a/backends/eds/lib/edsf-persona.vala
+++ b/backends/eds/lib/edsf-persona.vala
@@ -291,6 +291,7 @@ public class Edsf.Persona : Folks.Persona,
           new HashSet<EmailFieldDetails> (
                   (GLib.HashFunc) EmailFieldDetails.hash,
                   (GLib.EqualFunc) EmailFieldDetails.equal);
+  private Set<EmailFieldDetails> _email_addresses_ro;
 
   /**
    * { inheritDoc}
@@ -300,7 +301,7 @@ public class Edsf.Persona : Folks.Persona,
   [CCode (notify = false)]
   public Set<EmailFieldDetails> email_addresses
     {
-      get { return this._email_addresses; }
+      get { return this._email_addresses_ro; }
       set { this.change_email_addresses.begin (value); }
     }
 
@@ -527,8 +528,6 @@ public class Edsf.Persona : Folks.Persona,
           (GLib.HashFunc) ImFieldDetails.hash,
           (GLib.EqualFunc) ImFieldDetails.equal);
 
-  
-
   /**
    * { inheritDoc}
    *
@@ -846,6 +845,7 @@ public class Edsf.Persona : Folks.Persona,
             null, null,
             (GLib.HashFunc) WebServiceFieldDetails.hash,
             (GLib.EqualFunc) WebServiceFieldDetails.equal);
+      this._email_addresses_ro = this._email_addresses.read_only_view;
       this._anti_links = new HashSet<string> ();
       this._anti_links_ro = this._anti_links.read_only_view;
 
@@ -1232,6 +1232,7 @@ public class Edsf.Persona : Folks.Persona,
               this._email_addresses))
         {
           this._email_addresses = new_email_addresses;
+          this._email_addresses_ro = new_email_addresses.read_only_view;
           if (emit_notification)
             {
               this.notify_property ("email-addresses");



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