[gxml] Text.str now is writable



commit 84c8c9fd75bec006f44b0de2a62af9e1fb6fee1a
Author: Daniel Espinosa <esodan gmail com>
Date:   Wed Feb 22 13:45:15 2017 -0600

    Text.str now is writable

 NEWS            |    8 +++++++-
 gxml/Node.vala  |    2 +-
 gxml/TText.vala |    2 +-
 gxml/Text.vala  |    2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index a477ca5..c9278bf 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,10 @@
 ===============
+Version 0.14
+===============
+
+* API additions now GXml.Text.str is writable see Bug #779038
+
+===============
 Version 0.13.98
 ===============
 
@@ -9,7 +15,7 @@ Version 0.13.98
 * Documentation improvements with examples
 * GOM Attributes access fixes
 * Added convenient methods to easy implementation of derived classes
-* Improved GomCollection implementations
+* Improved GomCollection implementations: HashMap, ArrayList and HashPairedMap
 * New GomProperty implementations for Date, DateTime
 * New and updated translations:
     Updated Brazilian   by Rafael Fontenelle <rafaelff gnome org>
diff --git a/gxml/Node.vala b/gxml/Node.vala
index dda37bd..4ef423e 100644
--- a/gxml/Node.vala
+++ b/gxml/Node.vala
@@ -1,4 +1,4 @@
-/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 0; tab-width: 2 -*- */
+  /* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 0; tab-width: 2 -*- */
 /* ObjectModel.vala
  *
  * Copyright (C) 2015  Daniel Espinosa <esodan gmail com>
diff --git a/gxml/TText.vala b/gxml/TText.vala
index 7f5a9e3..8827320 100644
--- a/gxml/TText.vala
+++ b/gxml/TText.vala
@@ -44,5 +44,5 @@ public class GXml.TText : GXml.TNode, GXml.Text
     set { _str = value; }
   }
   // GXml.Text
-  public string str { owned get { return _str.dup (); } }
+  public string str { owned get { return _str.dup ();} set { _str = value; } }
 }
diff --git a/gxml/Text.vala b/gxml/Text.vala
index 3b43182..6ea64ed 100644
--- a/gxml/Text.vala
+++ b/gxml/Text.vala
@@ -29,5 +29,5 @@ public interface GXml.Text : Object, GXml.Node
   /**
    * This should be implemented by returning {@link GXml.Node.value}
    */
-  public abstract string str { owned get; }
+  public abstract string str { owned get; set; }
 }


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