diff --git a/ChangeLog b/ChangeLog index 4a8e225e5..9a823b38c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-04-26 Mike Kestner + + * gtk/NodeStore.cs : implement IEnumerable. + 2005-04-24 Dan Winship * pango/Attribute.cs: Base class for Pango attributes, a la diff --git a/doc/en/Gtk/NodeStore.xml b/doc/en/Gtk/NodeStore.xml index aa3f7c6c9..fb9399e76 100644 --- a/doc/en/Gtk/NodeStore.xml +++ b/doc/en/Gtk/NodeStore.xml @@ -130,5 +130,18 @@ + + + Method + + System.Collections.IEnumerator + + + + Gets an enumerator for the root nodes. + a + Children of root nodes are not enumerated. You must traverse them independently. + + - \ No newline at end of file + diff --git a/gtk/NodeStore.cs b/gtk/NodeStore.cs index 60c6f9403..ead8f91f3 100644 --- a/gtk/NodeStore.cs +++ b/gtk/NodeStore.cs @@ -26,7 +26,7 @@ namespace Gtk { using System.Reflection; using System.Runtime.InteropServices; - public class NodeStore : GLib.Object { + public class NodeStore : GLib.Object, IEnumerable { class IDHashtable : Hashtable { class IDComparer : IComparer { @@ -472,5 +472,10 @@ namespace Gtk { return new GLib.GType (gtksharp_node_store_get_type ()); } } + + public IEnumerator GetEnumerator () + { + return nodes.GetEnumerator (); + } } }