[folks] Update Kf.PersonaStore.add_persona_from_details to use defined constants
- From: Raul Gutierrez Segales <raulgs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Update Kf.PersonaStore.add_persona_from_details to use defined constants
- Date: Thu, 31 Mar 2011 14:07:03 +0000 (UTC)
commit fbf1d5eebb24a53b615c1e0a564c57f8885c5e67
Author: Raul Gutierrez Segales <raul gutierrez segales collabora co uk>
Date: Wed Mar 30 17:49:10 2011 +0100
Update Kf.PersonaStore.add_persona_from_details to use defined constants
backends/key-file/kf-persona-store.vala | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/backends/key-file/kf-persona-store.vala b/backends/key-file/kf-persona-store.vala
index d67e1a1..e07b7aa 100644
--- a/backends/key-file/kf-persona-store.vala
+++ b/backends/key-file/kf-persona-store.vala
@@ -286,12 +286,18 @@ public class Folks.Backends.Kf.PersonaStore : Folks.PersonaStore
}
/**
- * { inheritDoc}
+ * Add a new { link Persona} to the PersonaStore.
+ *
+ * Accepted keys for `details` are:
+ * - PersonaStore.detail_key (PersonaDetail.IM_ADDRESSES)
+ *
+ * See { link Folks.PersonaStore.add_persona_from_details}.
*/
public override async Folks.Persona? add_persona_from_details (
HashTable<string, Value?> details) throws Folks.PersonaStoreError
{
- unowned Value val = details.lookup ("im-addresses");
+ unowned Value val =
+ details.lookup (PersonaStore.detail_key (PersonaDetail.IM_ADDRESSES));
unowned HashTable<string, LinkedHashSet<string>> im_addresses =
(HashTable<string, LinkedHashSet<string>>) val.get_boxed ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]