summaryrefslogtreecommitdiff
path: root/folks
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-20 01:40:50 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-23 22:00:42 +0100
commit99d591f3b4888c6ad4f5ca3f89bc187f351fba72 (patch)
tree9f3bfd3215dd4e455d537a92524b7d0cd4ffca96 /folks
parent99af9effc77f18bb83c369d48b16513a92cff920 (diff)
Change NoteDetails.notes to be of type Set<Note>
Helps: bgo#640092
Diffstat (limited to 'folks')
-rw-r--r--folks/individual.vala7
-rw-r--r--folks/note-details.vala4
2 files changed, 7 insertions, 4 deletions
diff --git a/folks/individual.vala b/folks/individual.vala
index 76c7c55..461d0e9 100644
--- a/folks/individual.vala
+++ b/folks/individual.vala
@@ -332,15 +332,18 @@ public class Folks.Individual : Object,
public string calendar_event_id { get; set; }
private HashSet<Note> _notes;
+
/**
* {@inheritDoc}
*/
- public HashSet<Note> notes
+ public Set<Note> notes
{
get { return this._notes; }
private set
{
- this._notes = value;
+ this._notes = new HashSet<Note> ();
+ foreach (var note in value)
+ this._notes.add (note);
this.notify_property ("notes");
}
}
diff --git a/folks/note-details.vala b/folks/note-details.vala
index 4031445..3e194eb 100644
--- a/folks/note-details.vala
+++ b/folks/note-details.vala
@@ -86,7 +86,7 @@ public interface Folks.NoteDetails : Object
/**
* The notes about the contact.
*
- * @since 0.4.0
+ * @since UNRELEASED
*/
- public abstract HashSet<Note> notes { get; set; }
+ public abstract Set<Note> notes { get; set; }
}