summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2012-10-01 09:37:59 +1300
committerRobert Ancell <robert.ancell@canonical.com>2012-10-01 09:40:34 +1300
commit8456aded28a8f6fdc401503225c2d844d00197dc (patch)
treed407cb076af84973a9b5a42ec42c788f92eb66f1
parent9b604739e610fa05c272c650add35e40bcc0d0b3 (diff)
downloaddconf-8456aded28a8f6fdc401503225c2d844d00197dc.tar.gz
editor: Correctly get XML text from schema descriptions
https://bugzilla.gnome.org/show_bug.cgi?id=675928
-rw-r--r--editor/dconf-schema.vala6
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")