diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-19 22:27:27 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2011-04-23 22:00:02 +0100 |
commit | f8baf37765580eaa497f675f102ef713a67083fe (patch) | |
tree | a8018b84b6679678dcba98adbb0b8661997b69c4 /tools | |
parent | 6510a5cee80afafeefd507387455c6ebcb66a880 (diff) |
Change UrlDetails.urls to be a Set<FieldDetails>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inspect/utils.vala | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala index c25ab23..b1639a2 100644 --- a/tools/inspect/utils.vala +++ b/tools/inspect/utils.vala @@ -321,7 +321,8 @@ private class Folks.Inspect.Utils return output_string; } else if (prop_name == "email-addresses" || - prop_name == "phone-numbers") + prop_name == "phone-numbers" || + prop_name == "urls") { output_string = "{ "; bool first = true; @@ -341,26 +342,6 @@ private class Folks.Inspect.Utils return output_string; } - else if (prop_name == "urls") - { - 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; - } else if (prop_name == "birthday") { unowned DateTime dobj = (DateTime) prop_value.get_boxed (); |