[gxml] XComment: renamed from GComment
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] XComment: renamed from GComment
- Date: Fri, 5 Jul 2019 05:09:13 +0000 (UTC)
commit f8da5970ba81053c30c694a4542d8caac2a3d840
Author: Daniel Espinosa <esodan gmail com>
Date: Thu Jul 4 22:18:40 2019 -0500
XComment: renamed from GComment
gxml/GXmlDocument.vala | 2 +-
gxml/GXmlNode.vala | 2 +-
gxml/{GXmlComment.vala => XComment.vala} | 4 ++--
gxml/meson.build | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gxml/GXmlDocument.vala b/gxml/GXmlDocument.vala
index a3dbd69..da5e58c 100644
--- a/gxml/GXmlDocument.vala
+++ b/gxml/GXmlDocument.vala
@@ -242,7 +242,7 @@ public class GXml.GDocument : GXml.GNode,
}
public DomComment GXml.DomDocument.create_comment (string data) throws GLib.Error {
var c = doc->new_comment (data);
- return new GComment (this, c);
+ return new XComment (this, c);
}
public DomProcessingInstruction create_processing_instruction (string target, string data) throws
GLib.Error {
return (DomProcessingInstruction) create_pi (target, data);
diff --git a/gxml/GXmlNode.vala b/gxml/GXmlNode.vala
index c0d86d8..a7d0360 100644
--- a/gxml/GXmlNode.vala
+++ b/gxml/GXmlNode.vala
@@ -110,7 +110,7 @@ public abstract class GXml.GNode : Object,
case GXml.NodeType.PROCESSING_INSTRUCTION:
return new GProcessingInstruction (doc, node);
case GXml.NodeType.COMMENT:
- return new GComment (doc, node);
+ return new XComment (doc, node);
case GXml.NodeType.DOCUMENT:
return new GDocument.from_doc (node->doc);
case GXml.NodeType.DOCUMENT_TYPE:
diff --git a/gxml/GXmlComment.vala b/gxml/XComment.vala
similarity index 90%
rename from gxml/GXmlComment.vala
rename to gxml/XComment.vala
index 1946327..119320d 100644
--- a/gxml/GXmlComment.vala
+++ b/gxml/XComment.vala
@@ -24,9 +24,9 @@ using Gee;
/**
* DOM4 Class implemeting {@link GXml.Comment} and {@link GXml.DomComment} interface, powered by libxml2
library.
*/
-public class GXml.GComment : GXml.XCharacterData, GXml.DomComment
+public class GXml.XComment : GXml.XCharacterData, GXml.DomComment
{
- public GComment (GDocument doc, Xml.Node *node)
+ public XComment (GDocument doc, Xml.Node *node)
{
_node = node;
_doc = doc;
diff --git a/gxml/meson.build b/gxml/meson.build
index 7f156ac..10888ea 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -65,7 +65,6 @@ valasources = files ([
'GomStringRef.vala',
'GomText.vala',
'GXmlChildNode.vala',
- 'GXmlComment.vala',
'GXmlDocument.vala',
'GXmlDomCollections.vala',
'GXmlDomEvents.vala',
@@ -85,6 +84,7 @@ valasources = files ([
'Schema.vala',
'XAttribute.vala',
'XCharacter.vala',
+ 'XComment.vala',
'XHashMapAttr.vala',
'XParser.vala',
'XPath.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]