diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-20 01:40:50 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 22:00:42 +0100 |
commit | 99d591f3b4888c6ad4f5ca3f89bc187f351fba72 (patch) | |
tree | 9f3bfd3215dd4e455d537a92524b7d0cd4ffca96 /tools | |
parent | 99af9effc77f18bb83c369d48b16513a92cff920 (diff) |
Change NoteDetails.notes to be of type Set<Note>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inspect/utils.vala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala index 1b3ac9f2..e12d4bdf 100644 --- a/tools/inspect/utils.vala +++ b/tools/inspect/utils.vala @@ -370,6 +370,26 @@ private class Folks.Inspect.Utils return output_string; } + else if (prop_name == "notes") + { + Set<Note> notes = (Set<Note>) prop_value.get_object (); + + output_string = "{ "; + bool first = true; + + foreach (var note in notes) + { + if (!first) + { + output_string += ", "; + } + output_string += note.uid; + first = false; + } + output_string += " }"; + + return output_string; + } else if (prop_name == "structured-name") { unowned StructuredName sn = (StructuredName) prop_value.get_object (); |