From f8da5970ba81053c30c694a4542d8caac2a3d840 Mon Sep 17 00:00:00 2001 From: Daniel Espinosa Date: Thu, 4 Jul 2019 22:18:40 -0500 Subject: [PATCH] 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(-) rename gxml/{GXmlComment.vala => XComment.vala} (90%) diff --git a/gxml/GXmlDocument.vala b/gxml/GXmlDocument.vala index a3dbd69a..da5e58cf 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 c0d86d89..a7d03600 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 19463273..119320de 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 7f156acf..10888eaf 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', -- GitLab