[dconf] editor: Correctly get XML text from schema descriptions



commit 8456aded28a8f6fdc401503225c2d844d00197dc
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Oct 1 09:37:59 2012 +1300

    editor: Correctly get XML text from schema descriptions
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675928

 editor/dconf-schema.vala |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-schema.vala b/editor/dconf-schema.vala
index e1e8691..0365603 100644
--- a/editor/dconf-schema.vala
+++ b/editor/dconf-schema.vala
@@ -44,7 +44,7 @@ public class SchemaKey
             {
                 try
                 {
-                    default_value = Variant.parse(new VariantType(type), child->children->content);
+                    default_value = Variant.parse(new VariantType(type), child->get_content());
                 }
                 catch (VariantParseError e)
                 {
@@ -52,9 +52,9 @@ public class SchemaKey
                 }
             }
             else if (child->name == "summary")
-                summary = child->children == null ? "" : child->children->content;
+                summary = child->get_content();
             else if (child->name == "description")
-                description = child->children == null ? "" : child->children->content;
+                description = child->get_content();
             else if (child->name == "range")
                 range = new SchemaValueRange.from_xml(type, child);
             else if (child->name == "choices")



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