=?utf-8?q?=5Bfolks=5D_Bug_666528_=E2=80=94_Can=27t_convert_from_type_=27G?= =?utf-8?q?File=27_to_=27gchararray=27?=



commit 73b61e6a5465d9c511e0ef853e9dea7497bbcf10
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Dec 21 17:53:04 2011 +0000

    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

 NEWS                     |    1 +
 tools/inspect/utils.vala |   15 ++++++++++++++-
 2 files changed, 15 insertions(+), 1 deletions(-)
---
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<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")
         {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]