[gxml] Renamed ProcessingInstruction to xProcessingInstruction



commit 55aefb354b55c158264e7a892a2ad13beebc1dc8
Author: Daniel Espinosa <esodan gmail com>
Date:   Tue May 12 13:02:00 2015 -0500

    Renamed ProcessingInstruction to xProcessingInstruction

 gxml/libxml-Document.vala              |    4 ++--
 gxml/libxml-ProcessingInstruction.vala |    4 ++--
 test/DocumentTest.vala                 |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gxml/libxml-Document.vala b/gxml/libxml-Document.vala
index a34cf10..26df7e0 100644
--- a/gxml/libxml-Document.vala
+++ b/gxml/libxml-Document.vala
@@ -737,7 +737,7 @@ namespace GXml {
                 * @return A new { link GXml.ProcessingInstruction}
                 * for the given target; this should not be freed
                 */
-               public ProcessingInstruction create_processing_instruction (string target, string data) {
+               public xProcessingInstruction create_processing_instruction (string target, string data) {
                        /* TODO: this is not backed by a libxml2 structure,
                           and is not stored in the NodeDict, so we don't know
                           when it will be freed :( Figure it out.
@@ -754,7 +754,7 @@ namespace GXml {
                        check_invalid_characters (target, "processing instruction");
 
                        // TODO: want to see whether we can find a libxml2 structure for this
-                       ProcessingInstruction pi = new ProcessingInstruction (target, data, this);
+                       xProcessingInstruction pi = new xProcessingInstruction (target, data, this);
 
                        return pi;
                }
diff --git a/gxml/libxml-ProcessingInstruction.vala b/gxml/libxml-ProcessingInstruction.vala
index cf35fb7..6bf90dc 100644
--- a/gxml/libxml-ProcessingInstruction.vala
+++ b/gxml/libxml-ProcessingInstruction.vala
@@ -40,8 +40,8 @@ namespace GXml {
         * {{{<?pi_target processing instruction data?>}}}
         * For more, see: [[http://www.w3.org/TR/DOM-Level-1/level-one-core.html#ID-1004215813]]
         */
-       public class ProcessingInstruction : xNode {
-               internal ProcessingInstruction (string target, string data, xDocument doc) {
+       public class xProcessingInstruction : xNode {
+               internal xProcessingInstruction (string target, string data, xDocument doc) {
                        base (NodeType.PROCESSING_INSTRUCTION, doc); // TODO: want to pass a real Xml.Node* ?
                        this.target = target;
                        this.data = data;
diff --git a/test/DocumentTest.vala b/test/DocumentTest.vala
index de41e27..afb8391 100644
--- a/test/DocumentTest.vala
+++ b/test/DocumentTest.vala
@@ -337,7 +337,7 @@ class DocumentTest : GXmlTest {
                        });
                Test.add_func ("/gxml/document/create_processing_instruction", () => {
                                xDocument doc = get_doc ();
-                               ProcessingInstruction instruction = doc.create_processing_instruction 
("target", "data");
+                               xProcessingInstruction instruction = doc.create_processing_instruction 
("target", "data");
 
                                assert (instruction.node_name == "target");
                                assert (instruction.target == "target");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]