diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-19 21:55:06 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 21:59:57 +0100 |
commit | 1d035bd4d12e61b7809b5db251993306f6c170ae (patch) | |
tree | b2b9463ee5e86462fb1e90e73a00fe8aab29cb0e /tools | |
parent | f912d31414251e3a87616cdedb46d1d3015ccd53 (diff) |
Change EmailDetails.email_addresses to be a Set<FieldDetails>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inspect/utils.vala | 23 |
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 = "{ "; |