summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRaul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>2011-02-24 15:21:36 +0000
committerTravis Reitter <travis.reitter@collabora.co.uk>2011-02-25 10:52:19 -0800
commit4f43991ec80f0076e58eafc5970e56b73f983801 (patch)
tree535ee32abcc85bc8a69ee4c8fc15d405253d1247 /tools
parent16ee512844a43dc0a0973f63f986d57c9d84b387 (diff)
folks-inspect: handle emails/urls/phone-numbers
Diffstat (limited to 'tools')
-rw-r--r--tools/inspect/utils.vala22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index 725006d..dc0788e 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -291,6 +291,28 @@ private class Folks.Inspect.Utils
output_string += " }";
return output_string;
}
+ else if (prop_name == "email-addresses" ||
+ prop_name == "urls" ||
+ prop_name == "phone-numbers")
+ {
+ output_string = "{ ";
+ bool first = true;
+ unowned GLib.List<FieldDetails> prop_list =
+ (GLib.List<FieldDetails>) prop_value.get_pointer ();
+
+ foreach (var p in prop_list)
+ {
+ if (!first)
+ {
+ output_string += ", ";
+ }
+ output_string += p.value;
+ first = false;
+ }
+ output_string += " }";
+
+ return output_string;
+ }
return Utils.transform_value_to_string (prop_value);
}