explicitly subtype GLib.Object to support future versions of Vala
authorJuerg Billeter <j@bitron.ch>
Tue, 22 Jan 2008 10:59:37 +0000 (10:59 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Tue, 22 Jan 2008 10:59:37 +0000 (10:59 +0000)
2007-08-30  Juerg Billeter  <j@bitron.ch>

* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
  gee/iterable.vala, gee/iterator.vala, gee/list.vala, gee/map.vala,
  gee/readonlycollection.vala, gee/readonlylist.vala,
  gee/readonlymap.vala, gee/readonlyset.vala: explicitly subtype
  GLib.Object to support future versions of Vala

svn path=/trunk/; revision=8

12 files changed:
ChangeLog
gee/arraylist.vala
gee/hashmap.vala
gee/hashset.vala
gee/iterable.vala
gee/iterator.vala
gee/list.vala
gee/map.vala
gee/readonlycollection.vala
gee/readonlylist.vala
gee/readonlymap.vala
gee/readonlyset.vala

index 60d0b6c..98a0ef1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-08-30  Jürg Billeter  <j@bitron.ch>
+
+       * gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
+         gee/iterable.vala, gee/iterator.vala, gee/list.vala, gee/map.vala,
+         gee/readonlycollection.vala, gee/readonlylist.vala,
+         gee/readonlymap.vala, gee/readonlyset.vala: explicitly subtype
+         GLib.Object to support future versions of Vala
+
 2007-07-27  Jürg Billeter  <j@bitron.ch>
 
        * configure.ac: Post-release version bump
index 9853bfd..2be04f2 100644 (file)
@@ -27,7 +27,7 @@ using GLib;
 /**
  * Arrays of arbitrary elements which grow automatically as elements are added.
  */
-public class Gee.ArrayList<G> : Iterable<G>, Collection<G>, List<G> {
+public class Gee.ArrayList<G> : Object, Iterable<G>, Collection<G>, List<G> {
        public int size {
                get { return _size; }
        }
@@ -147,7 +147,7 @@ public class Gee.ArrayList<G> : Iterable<G>, Collection<G>, List<G> {
                _items.resize (value);
        }
 
-       private class Iterator<G> : Gee.Iterator<G> {
+       private class Iterator<G> : Object, Gee.Iterator<G> {
                public ArrayList<G> list {
                        set {
                                _list = value;
index 890bc7a..89abb93 100644 (file)
@@ -27,7 +27,7 @@ using GLib;
 /**
  * Hashtable implementation of the Map interface.
  */
-public class Gee.HashMap<K,V> : Map<K,V> {
+public class Gee.HashMap<K,V> : Object, Map<K,V> {
        public int size {
                get { return _nnodes; }
        }
@@ -179,7 +179,7 @@ public class Gee.HashMap<K,V> : Map<K,V> {
                }
        }
 
-       private class KeySet<K,V> : Iterable<K>, Collection<K>, Set<K> {
+       private class KeySet<K,V> : Object, Iterable<K>, Collection<K>, Set<K> {
                public HashMap<K,V> map {
                        set { _map = value; }
                }
@@ -216,7 +216,7 @@ public class Gee.HashMap<K,V> : Map<K,V> {
                }
        }
 
-       private class KeyIterator<K,V> : Iterator<K> {
+       private class KeyIterator<K,V> : Object, Iterator<K> {
                public HashMap<K,V> map {
                        set {
                                _map = value;
@@ -252,7 +252,7 @@ public class Gee.HashMap<K,V> : Map<K,V> {
                }
        }
 
-       private class ValueCollection<K,V> : Iterable<V>, Collection<V> {
+       private class ValueCollection<K,V> : Object, Iterable<V>, Collection<V> {
                public HashMap<K,V> map {
                        set { _map = value; }
                }
@@ -293,7 +293,7 @@ public class Gee.HashMap<K,V> : Map<K,V> {
                }
        }
 
-       private class ValueIterator<K,V> : Iterator<V> {
+       private class ValueIterator<K,V> : Object, Iterator<V> {
                public HashMap<K,V> map {
                        set {
                                _map = value;
index f0bb5f4..c053a1c 100644 (file)
@@ -27,7 +27,7 @@ using GLib;
 /**
  * Hashtable implementation of the Set interface.
  */
-public class Gee.HashSet<G> : Iterable<G>, Collection<G>, Set<G> {
+public class Gee.HashSet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
        public int size {
                get { return _nnodes; }
        }
@@ -158,7 +158,7 @@ public class Gee.HashSet<G> : Iterable<G>, Collection<G>, Set<G> {
                }
        }
 
-       private class Iterator<G> : Gee.Iterator<G> {
+       private class Iterator<G> : Object, Gee.Iterator<G> {
                public HashSet<G> set {
                        set {
                                _set = value;
index 1b3e66d..cb29c66 100644 (file)
@@ -24,7 +24,7 @@
  * Implemented by classes that support a simple iteration over instances of the
  * collection.
  */
-public interface Gee.Iterable<G> {
+public interface Gee.Iterable<G> : GLib.Object {
        /**
         * Returns a Iterator that can be used for simple iteration over a
         * collection.
index a401946..d8c119b 100644 (file)
@@ -24,7 +24,7 @@
  * Implemented by classes that support a simple iteration over instances of the
  * collection.
  */
-public interface Gee.Iterator<G> {
+public interface Gee.Iterator<G> : GLib.Object {
        /**
         * Advances to the next element in the iteration.
         *
index 0ff967b..d49c525 100644 (file)
@@ -23,7 +23,7 @@
 /**
  * Represents a collection of items in a well-defined order.
  */
-public interface Gee.List<G> : GLib.Object, Collection<G> {
+public interface Gee.List<G> : Collection<G> {
        /**
         * Returns the item at the specified index in this list.
         *
index 6dcee69..8c61cbe 100644 (file)
@@ -23,7 +23,7 @@
 /**
  * A map is a generic collection of key/value pairs.
  */
-public interface Gee.Map<K,V> {
+public interface Gee.Map<K,V> : GLib.Object {
        /**
         * The number of items in this map.
         */
index 30a6ea6..c9d21dd 100644 (file)
@@ -25,7 +25,7 @@ using GLib;
 /**
  * Represents a read-only collection of items.
  */
-public class Gee.ReadOnlyCollection<G> : Iterable<G>, Collection<G> {
+public class Gee.ReadOnlyCollection<G> : Object, Iterable<G>, Collection<G> {
        public int size {
                get { return _collection.size; }
        }
@@ -69,7 +69,7 @@ public class Gee.ReadOnlyCollection<G> : Iterable<G>, Collection<G> {
                assert_not_reached ();
        }
 
-       private class Iterator<G> : Gee.Iterator<G> {
+       private class Iterator<G> : Object, Gee.Iterator<G> {
                public bool next () {
                        return false;
                }
index b07fa4a..5aa3eff 100644 (file)
@@ -25,7 +25,7 @@ using GLib;
 /**
  * Represents a read-only collection of items in a well-defined order.
  */
-public class Gee.ReadOnlyList<G> : Iterable<G>, Collection<G>, List<G> {
+public class Gee.ReadOnlyList<G> : Object, Iterable<G>, Collection<G>, List<G> {
        public int size {
                get { return _list.size; }
        }
@@ -97,7 +97,7 @@ public class Gee.ReadOnlyList<G> : Iterable<G>, Collection<G>, List<G> {
                assert_not_reached ();
        }
 
-       class Iterator<G> : Gee.Iterator<G> {
+       class Iterator<G> : Object, Gee.Iterator<G> {
                public bool next () {
                        return false;
                }
index f36c9aa..2136450 100644 (file)
@@ -25,7 +25,7 @@ using GLib;
 /**
  * Represents a read-only collection of key/value pairs.
  */
-public class Gee.ReadOnlyMap<K,V> : Map<K,V> {
+public class Gee.ReadOnlyMap<K,V> : Object, Map<K,V> {
        public int size {
                get { return _map.size; }
        }
index 81db5b3..272f3df 100644 (file)
@@ -25,7 +25,7 @@ using GLib;
 /**
  * Represents a read-only collection of items without duplicates.
  */
-public class Gee.ReadOnlySet<G> : Iterable<G>, Collection<G>, Set<G> {
+public class Gee.ReadOnlySet<G> : Object, Iterable<G>, Collection<G>, Set<G> {
        public int size {
                get { return _set.size; }
        }
@@ -69,7 +69,7 @@ public class Gee.ReadOnlySet<G> : Iterable<G>, Collection<G>, Set<G> {
                assert_not_reached ();
        }
 
-       private class Iterator<G> : Gee.Iterator<G> {
+       private class Iterator<G> : Object, Gee.Iterator<G> {
                public bool next () {
                        return false;
                }