[gxml] GParser: add body for node property
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] GParser: add body for node property
- Date: Mon, 8 Apr 2019 13:54:31 +0000 (UTC)
commit ae2a5465ace0b02bc6173eefa660de6900d458a1
Author: Daniel Espinosa <esodan gmail com>
Date: Mon Apr 8 08:53:11 2019 -0500
GParser: add body for node property
Fix https://gitlab.gnome.org/GNOME/gxml/issues/21
gxml/GXmlParser.vala | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/gxml/GXmlParser.vala b/gxml/GXmlParser.vala
index d39a517..d12fc45 100644
--- a/gxml/GXmlParser.vala
+++ b/gxml/GXmlParser.vala
@@ -23,9 +23,11 @@
private class GXml.GParser : Object, Parser {
private GDocument document;
+ private DomNode _node;
public GParser (GDocument doc) {
document = doc;
+ _node = doc;
}
// Parser Interface
@@ -105,7 +107,7 @@ private class GXml.GParser : Object, Parser {
}
public bool backup { get; set; }
public bool indent { get; set; }
- public GXml.DomNode node { get; }
+ public GXml.DomNode node { get { return _node; } }
public Cancellable? cancellable { get; set; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]