[folks] Rename Emailable -> EmailDetails



commit 26ade1fe73a0c18d8ad6c60e1b31b4c6547af79d
Author: Travis Reitter <travis reitter collabora co uk>
Date:   Thu Mar 10 11:59:25 2011 -0800

    Rename Emailable -> EmailDetails
    
    Helps bgo#642513 - Folks "Owner" interfaces are awkwardly-named

 NEWS                                         |    1 +
 folks/Makefile.am                            |    2 +-
 folks/{emailable.vala => email-details.vala} |    2 +-
 folks/individual.vala                        |    8 ++++----
 4 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/NEWS b/NEWS
index 56ee72e..fe65fd9 100644
--- a/NEWS
+++ b/NEWS
@@ -29,6 +29,7 @@ API changes:
 * Add RoleOwner.to_string()
 * Rename Aliasable -> AliasDetails
 * Rename AvatarOwner -> AvatarDetails
+* Rename Emailable -> EmailDetails
 
 Overview of changes from libfolks 0.3.5 to libfolks 0.3.6
 =========================================================
diff --git a/folks/Makefile.am b/folks/Makefile.am
index f28214c..6bf2c83 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -17,7 +17,7 @@ libfolks_la_SOURCES = \
 	backend.vala \
 	backend-store.vala \
 	birthday-details.vala \
-	emailable.vala \
+	email-details.vala \
 	favouritable.vala \
 	field-details.vala \
 	gender-owner.vala \
diff --git a/folks/emailable.vala b/folks/email-details.vala
similarity index 96%
rename from folks/emailable.vala
rename to folks/email-details.vala
index f26db6c..4434418 100644
--- a/folks/emailable.vala
+++ b/folks/email-details.vala
@@ -26,7 +26,7 @@ using GLib;
  *
  * @since 0.3.5
  */
-public interface Folks.Emailable : Object
+public interface Folks.EmailDetails : Object
 {
   /**
    * The email addresses of the contact.
diff --git a/folks/individual.vala b/folks/individual.vala
index bf7c7ae..d71f24a 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -66,7 +66,7 @@ public class Folks.Individual : Object,
     AliasDetails,
     AvatarDetails,
     BirthdayDetails,
-    Emailable,
+    EmailDetails,
     Favouritable,
     GenderOwner,
     Groupable,
@@ -1134,10 +1134,10 @@ public class Folks.Individual : Object,
           str_hash, str_equal);
       foreach (var persona in this._persona_list)
         {
-          var emailable = persona as Emailable;
-          if (emailable != null)
+          var email_details = persona as EmailDetails;
+          if (email_details != null)
             {
-              foreach (unowned FieldDetails fd in emailable.email_addresses)
+              foreach (unowned FieldDetails fd in email_details.email_addresses)
                 {
                   if (fd.value == null)
                     continue;



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