[gxml] * correct order of interfaces or else get run time error
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] * correct order of interfaces or else get run time error
- Date: Fri, 15 Jun 2012 22:29:42 +0000 (UTC)
commit c3540ecc6334a50f02cf70c6fb2d415bab29eb40
Author: Richard Schwarting <aquarichy gmail com>
Date: Fri Jun 15 18:29:35 2012 -0400
* correct order of interfaces or else get run time error
gxml/NodeList.vala | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gxml/NodeList.vala b/gxml/NodeList.vala
index 4806b07..33cccd6 100644
--- a/gxml/NodeList.vala
+++ b/gxml/NodeList.vala
@@ -97,7 +97,7 @@ namespace GXmlDom {
* owner/parent of the list's contents (children of the
* parent).
*/
- internal class GListNodeList : Gee.Iterable<XNode>, Gee.Traversable<XNode>, NodeList, GLib.Object {
+ internal class GListNodeList : Gee.Traversable<XNode>, Gee.Iterable<XNode>, NodeList, GLib.Object {
internal XNode root;
internal GLib.List<XNode> nodes;
@@ -421,7 +421,8 @@ namespace GXmlDom {
}
// TODO: Desperately want to extend List or implement relevant interfaces to make iterable
- internal abstract class ChildNodeList : Gee.Iterable<XNode>, Gee.Traversable<XNode>, NodeList, GLib.Object {
+ // TODO: remember that the order of interfaces that you're listing as implemented matters
+ internal abstract class ChildNodeList : Gee.Traversable<XNode>, Gee.Iterable<XNode>, NodeList, GLib.Object {
/* TODO: must be live
if this reflects children of a node, then must always be current
same with nodes from GetElementByTagName, made need separate impls for each */
@@ -697,7 +698,7 @@ namespace GXmlDom {
}
}
- public abstract class GenericNodeListIterator : Gee.Iterator<XNode>, Gee.Traversable<XNode>, GLib.Object {
+ public abstract class GenericNodeListIterator : Gee.Traversable<XNode>, Gee.Iterator<XNode>, GLib.Object {
protected abstract XNode get_current ();
protected abstract bool is_empty ();
protected abstract void advance ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]