summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-19 21:55:06 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-23 21:59:57 +0100
commit1d035bd4d12e61b7809b5db251993306f6c170ae (patch)
treeb2b9463ee5e86462fb1e90e73a00fe8aab29cb0e /tools
parentf912d31414251e3a87616cdedb46d1d3015ccd53 (diff)
Change EmailDetails.email_addresses to be a Set<FieldDetails>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r--tools/inspect/utils.vala23
1 files changed, 21 insertions, 2 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index a1ea495..fd20745 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -320,8 +320,27 @@ private class Folks.Inspect.Utils
output_string += " }";
return output_string;
}
- else if (prop_name == "email-addresses" ||
- prop_name == "urls" ||
+ else if (prop_name == "email-addresses")
+ {
+ output_string = "{ ";
+ bool first = true;
+ Set<FieldDetails> prop_list =
+ (Set<FieldDetails>) prop_value.get_object ();
+
+ foreach (var p in prop_list)
+ {
+ if (!first)
+ {
+ output_string += ", ";
+ }
+ output_string += p.value;
+ first = false;
+ }
+ output_string += " }";
+
+ return output_string;
+ }
+ else if (prop_name == "urls" ||
prop_name == "phone-numbers")
{
output_string = "{ ";