[folks] Rename GenderOwner -> GenderDetails
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Rename GenderOwner -> GenderDetails
- Date: Fri, 11 Mar 2011 19:37:24 +0000 (UTC)
commit 4cbdbf9b30095f5e5de3378e23f80c94810e829e
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Mar 10 15:14:26 2011 -0800
Rename GenderOwner -> GenderDetails
Helps bgo#642513 - Folks "Owner" interfaces are awkwardly-named
NEWS | 1 +
folks/Makefile.am | 2 +-
folks/{gender-owner.vala => gender-details.vala} | 2 +-
folks/individual.vala | 8 ++++----
4 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/NEWS b/NEWS
index e911499..11dc30a 100644
--- a/NEWS
+++ b/NEWS
@@ -31,6 +31,7 @@ API changes:
* Rename AvatarOwner -> AvatarDetails
* Rename Emailable -> EmailDetails
* Rename Favouritable -> FavouriteDetails
+* Rename GenderOwner -> GenderDetails
Overview of changes from libfolks 0.3.5 to libfolks 0.3.6
=========================================================
diff --git a/folks/Makefile.am b/folks/Makefile.am
index ae943d2..4b72661 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -20,7 +20,7 @@ libfolks_la_SOURCES = \
email-details.vala \
favourite-details.vala \
field-details.vala \
- gender-owner.vala \
+ gender-details.vala \
groupable.vala \
presence-owner.vala \
imable.vala \
diff --git a/folks/gender-owner.vala b/folks/gender-details.vala
similarity index 96%
rename from folks/gender-owner.vala
rename to folks/gender-details.vala
index 77f75e0..ca61e99 100644
--- a/folks/gender-owner.vala
+++ b/folks/gender-details.vala
@@ -47,7 +47,7 @@ public enum Folks.Gender
*
* @since 0.3.5
*/
-public interface Folks.GenderOwner : Object
+public interface Folks.GenderDetails : Object
{
/**
* The gender of the contact.
diff --git a/folks/individual.vala b/folks/individual.vala
index 6d75aec..af02fcd 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -68,7 +68,7 @@ public class Folks.Individual : Object,
BirthdayDetails,
EmailDetails,
FavouriteDetails,
- GenderOwner,
+ GenderDetails,
Groupable,
IMable,
NameOwner,
@@ -1042,10 +1042,10 @@ public class Folks.Individual : Object,
{
foreach (var persona in this._persona_list)
{
- var gender_owner = persona as GenderOwner;
- if (gender_owner != null)
+ var gender_details = persona as GenderDetails;
+ if (gender_details != null)
{
- var new_value = gender_owner.gender;
+ var new_value = gender_details.gender;
if (new_value != Gender.UNSPECIFIED)
{
if (new_value != this.gender)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]