[gxml] SettableTokenList: renamed from GDomSettableTokenList
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] SettableTokenList: renamed from GDomSettableTokenList
- Date: Fri, 5 Jul 2019 18:48:04 +0000 (UTC)
commit 3b80172f237de3a7edf2c7199ce7b32e4ee40e61
Author: Daniel Espinosa <esodan gmail com>
Date: Fri Jul 5 13:38:43 2019 -0500
SettableTokenList: renamed from GDomSettableTokenList
gxml/GDomCollections.vala | 19 -------------------
gxml/SettableTokenList.vala | 44 ++++++++++++++++++++++++++++++++++++++++++++
gxml/meson.build | 1 +
3 files changed, 45 insertions(+), 19 deletions(-)
---
diff --git a/gxml/GDomCollections.vala b/gxml/GDomCollections.vala
index 7cc2114..9954ea7 100644
--- a/gxml/GDomCollections.vala
+++ b/gxml/GDomCollections.vala
@@ -22,25 +22,6 @@
using Gee;
-/**
- * DOM4 Setteable token list, powered by libxml2 library.
- */
-public class GXml.GDomSettableTokenList : GXml.TokenList, GXml.DomSettableTokenList {
- public string value {
- owned get { return to_string (); }
- set {
- string[] s = value.split (" ");
- for (int i = 0; i < s.length; i++) {
- (this as Gee.ArrayList<string>).add (s[i]);
- }
- }
- }
-
- public GDomSettableTokenList (DomElement e, string? attr) {
- base (e, attr);
- }
-
-}
/**
* DOM4 HTML Collection, powered by libxml2 library.
*/
diff --git a/gxml/SettableTokenList.vala b/gxml/SettableTokenList.vala
new file mode 100644
index 0000000..ae24fc2
--- /dev/null
+++ b/gxml/SettableTokenList.vala
@@ -0,0 +1,44 @@
+/* -*- Mode: vala; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- */
+/* GXmlDomCollections.vala
+ *
+ * Copyright (C) 2016 Daniel Espinosa <esodan gmail com>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors:
+ * Daniel Espinosa <esodan gmail com>
+ */
+
+using Gee;
+
+/**
+ * DOM4 Setteable token list, powered by libxml2 library.
+ */
+public class GXml.SettableTokenList : GXml.TokenList, GXml.DomSettableTokenList {
+ public string value {
+ owned get { return to_string (); }
+ set {
+ string[] s = value.split (" ");
+ for (int i = 0; i < s.length; i++) {
+ (this as Gee.ArrayList<string>).add (s[i]);
+ }
+ }
+ }
+
+ public SettableTokenList (DomElement e, string? attr) {
+ base (e, attr);
+ }
+
+}
+
diff --git a/gxml/meson.build b/gxml/meson.build
index 26d50c5..3eea371 100644
--- a/gxml/meson.build
+++ b/gxml/meson.build
@@ -71,6 +71,7 @@ valasources = files ([
'Namespace.vala',
'NodeType.vala',
'Parser.vala',
+ 'SettableTokenList.vala',
'Schema.vala',
'TokenList.vala',
'XAttribute.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]