summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-12-21 17:53:04 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2011-12-21 17:53:04 +0000
commit73b61e6a5465d9c511e0ef853e9dea7497bbcf10 (patch)
tree64b7056838f7baf57b4f0ba194fbf6fd4d1bb4de /tools
parentc05b0a64acc35f47f8474094a1c378e22d874954 (diff)
Bug 666528 — Can't convert from type 'GFile' to 'gchararray'
Add pretty-printing support for a couple of new properties to folks-inspect. Closes: bgo#666528
Diffstat (limited to 'tools')
-rw-r--r--tools/inspect/utils.vala15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala
index 72620b96..d14c6ce4 100644
--- a/tools/inspect/utils.vala
+++ b/tools/inspect/utils.vala
@@ -237,7 +237,8 @@ private class Folks.Inspect.Utils
return "Set of %u personas".printf (personas.size);
}
else if (prop_name == "groups" ||
- prop_name == "local-ids")
+ prop_name == "local-ids" ||
+ prop_name == "supported-fields")
{
Set<string> groups = (Set<string>) prop_value.get_object ();
output_string = "{ ";
@@ -272,6 +273,18 @@ private class Folks.Inspect.Utils
return ret;
}
+ else if (prop_name == "file")
+ {
+ string ret = null;
+ File? file = (File) prop_value.get_object ();
+
+ if (file != null)
+ {
+ ret = "%p (file: %s)".printf (file, file.get_uri ());
+ }
+
+ return ret;
+ }
else if (prop_name == "im-addresses" ||
prop_name == "web-service-addresses")
{