summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-20 01:41:20 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2011-04-23 22:00:44 +0100
commita1aa6294a48a6cec8b92edd7f7cc73f6047c39cc (patch)
tree11b47311ed6051b4b93de8e71410c89ac7f31133 /tools
parent99d591f3b4888c6ad4f5ca3f89bc187f351fba72 (diff)
Change RoleDetails.roles to be of type Set<Role>
Helps: bgo#640092
Diffstat (limited to 'tools')
-rw-r--r--tools/inspect/utils.vala20
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index e12d4bd..11767e6 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -390,6 +390,26 @@ private class Folks.Inspect.Utils
return output_string;
}
+ else if (prop_name == "roles")
+ {
+ Set<Role> roles = (Set<Role>) prop_value.get_object ();
+
+ output_string = "{ ";
+ bool first = true;
+
+ foreach (var role in roles)
+ {
+ if (!first)
+ {
+ output_string += ", ";
+ }
+ output_string += role.to_string ();
+ first = false;
+ }
+ output_string += " }";
+
+ return output_string;
+ }
else if (prop_name == "structured-name")
{
unowned StructuredName sn = (StructuredName) prop_value.get_object ();