[folks] List Folks.PersonaDetail in alphabetical order
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] List Folks.PersonaDetail in alphabetical order
- Date: Fri, 8 Apr 2011 15:29:17 +0000 (UTC)
commit e307cd368b8f185de40a4e9c347211403d01e377
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date: Fri Apr 8 12:30:55 2011 +0100
List Folks.PersonaDetail in alphabetical order
backends/tracker/lib/trf-persona-store.vala | 4 ++--
folks/persona-store.vala | 24 ++++++++++++------------
tests/tracker/add-persona.vala | 3 ++-
3 files changed, 16 insertions(+), 15 deletions(-)
---
diff --git a/backends/tracker/lib/trf-persona-store.vala b/backends/tracker/lib/trf-persona-store.vala
index c006268..abf7a64 100644
--- a/backends/tracker/lib/trf-persona-store.vala
+++ b/backends/tracker/lib/trf-persona-store.vala
@@ -366,7 +366,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
* - PersonaStore.detail_key (PersonaDetail.IM_ADDRESSES)
* - PersonaStore.detail_key (PersonaDetail.ALIAS)
* - PersonaStore.detail_key (PersonaDetail.FULL_NAME)
- * - PersonaStore.detail_key (PersonaDetail.FAVOURITE)
+ * - PersonaStore.detail_key (PersonaDetail.IS_FAVOURITE)
* - PersonaStore.detail_key (PersonaDetail.STRUCTURED_NAME)
* - PersonaStore.detail_key (PersonaDetail.AVATAR)
* - PersonaStore.detail_key (PersonaDetail.BIRTHDAY)
@@ -423,7 +423,7 @@ public class Trf.PersonaStore : Folks.PersonaStore
builder.object_string (sname.prefixes);
}
else if (k == Folks.PersonaStore.detail_key (
- PersonaDetail.FAVOURITE))
+ PersonaDetail.IS_FAVOURITE))
{
if (v.get_boolean ())
{
diff --git a/folks/persona-store.vala b/folks/persona-store.vala
index bc392e6..b71d26c 100644
--- a/folks/persona-store.vala
+++ b/folks/persona-store.vala
@@ -109,20 +109,20 @@ public errordomain Folks.PersonaStoreError
public enum Folks.PersonaDetail
{
ALIAS,
- FULL_NAME,
- FAVOURITE,
- STRUCTURED_NAME,
AVATAR,
BIRTHDAY,
- GENDER,
EMAIL_ADDRESSES,
+ FULL_NAME,
+ GENDER,
IM_ADDRESSES,
- WEB_SERVICE_ADDRESSES,
+ IS_FAVOURITE,
NOTES,
PHONE_NUMBERS,
POSTAL_ADDRESSES,
ROLES,
- URLS
+ STRUCTURED_NAME,
+ URLS,
+ WEB_SERVICE_ADDRESSES
}
/**
@@ -151,20 +151,20 @@ public abstract class Folks.PersonaStore : Object
*/
private static const string _PERSONA_DETAIL[] = {
"alias",
- "full-name",
- "is-favourite",
- "structured-name",
"avatar",
"birthday",
- "gender",
"email-addresses",
+ "full-name",
+ "gender",
"im-addresses",
- "web-service-addresses",
+ "is-favourite",
"notes",
"phone-numbers",
"postal-addresses",
"roles",
- "urls"
+ "structured-name",
+ "urls",
+ "web-service-addresses"
};
/**
diff --git a/tests/tracker/add-persona.vala b/tests/tracker/add-persona.vala
index f0145d1..8b25f9e 100644
--- a/tests/tracker/add-persona.vala
+++ b/tests/tracker/add-persona.vala
@@ -190,7 +190,8 @@ public class AddPersonaTests : Folks.TestCase
Value? v3 = Value (typeof (bool));
v3.set_boolean (true);
- details.insert (Folks.PersonaStore.detail_key (PersonaDetail.FAVOURITE),
+ details.insert (
+ Folks.PersonaStore.detail_key (PersonaDetail.IS_FAVOURITE),
(owned) v3);
Value? v4 = Value (typeof (StructuredName));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]