diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-10-01 09:37:59 +1300 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-10-01 09:40:34 +1300 |
commit | 8456aded28a8f6fdc401503225c2d844d00197dc (patch) | |
tree | d407cb076af84973a9b5a42ec42c788f92eb66f1 /editor | |
parent | 9b604739e610fa05c272c650add35e40bcc0d0b3 (diff) | |
download | dconf-8456aded28a8f6fdc401503225c2d844d00197dc.tar.gz |
editor: Correctly get XML text from schema descriptions
https://bugzilla.gnome.org/show_bug.cgi?id=675928
Diffstat (limited to 'editor')
-rw-r--r-- | 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") |