From 73b61e6a5465d9c511e0ef853e9dea7497bbcf10 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 21 Dec 2011 17:53:04 +0000 Subject: [PATCH] =?utf8?q?Bug=20666528=20=E2=80=94=20Can't=20convert=20fro?= =?utf8?q?m=20type=20'GFile'=20to=20'gchararray'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add pretty-printing support for a couple of new properties to folks-inspect. Closes: bgo#666528 --- NEWS | 1 + tools/inspect/utils.vala | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index bc17cc2..eee9353 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ Overview of changes from libfolks 0.6.6 to libfolks 0.6.7 ============================================================= Bugs fixed: * Bug 666310 — Crash in Tracker backend by unsetting an entry in a read-only map +* Bug 666528 — Can't convert from type 'GFile' to 'gchararray' Overview of changes from libfolks 0.6.5 to libfolks 0.6.6 ============================================================= diff --git a/tools/inspect/utils.vala b/tools/inspect/utils.vala index 72620b9..d14c6ce 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 groups = (Set) 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") { -- 2.7.4