[gxml] Set version to 0.7.0
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] Set version to 0.7.0
- Date: Tue, 29 Sep 2015 21:36:37 +0000 (UTC)
commit 2f1d1807f30f5b9b43bfaea6ab92ed5c075e5add
Author: Daniel Espinosa <esodan gmail com>
Date: Tue Sep 29 16:32:19 2015 -0500
Set version to 0.7.0
* Backward compatible with 0.6.0 series
configure.ac | 4 ++--
gxml/Enumeration.vala | 16 ++++++++++++++--
gxml/SerializableValueList.vala | 2 --
3 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index be28537..63571be 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,8 +11,8 @@
# Release Version
m4_define([project_major_version], [0])
-m4_define([project_minor_version], [6])
-m4_define([project_micro_version], [2])
+m4_define([project_minor_version], [7])
+m4_define([project_micro_version], [0])
m4_define([project_nano_version], [0])
# LT_VERSION
diff --git a/gxml/Enumeration.vala b/gxml/Enumeration.vala
index cd40cb5..d11bb93 100644
--- a/gxml/Enumeration.vala
+++ b/gxml/Enumeration.vala
@@ -142,10 +142,22 @@ namespace GXml {
return enumc.values;
}
/**
- * Converts a string to a value in a { link GLib.EnumValue}
+ * Transform an enumeration in an array of strings representing enumeration values.
*
- * Returns: a value in a { link GLib.EnumValue}
+ * Returns: an array of strings representing an enumeration.
+ *
+ * @param enumeration: a { link GLib.Type} of type { link GLib.Type.ENUM}
*/
+ public static string[] to_string_array (Type enumeration) throws GLib.Error
+ requires (enumeration.is_a (Type.ENUM))
+ {
+ var vals = Enumeration.to_array (enumeration);
+ string [] s = {};
+ for (int i = 0; i < vals.length; i++) {
+ s += Enumeration.get_nick_camelcase (enumeration, vals[i].value);
+ }
+ return s;
+ }
}
public errordomain EnumerationError
{
diff --git a/gxml/SerializableValueList.vala b/gxml/SerializableValueList.vala
index e052d97..16be42b 100644
--- a/gxml/SerializableValueList.vala
+++ b/gxml/SerializableValueList.vala
@@ -28,8 +28,6 @@ using Gee;
* All values are stored in an array to get access to it by its position using
* { link SerializableValueList.get_value}.
*/
-using Gee;
-
public class GXml.SerializableValueList : SerializableObjectModel, SerializableProperty
{
private string _val = null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]