Author: mkestner
Date: 2005-04-26 09:45:27 -0400 (Tue, 26 Apr 2005)
New Revision: 43594

Modified:
   trunk/gtk-sharp/ChangeLog
   trunk/gtk-sharp/doc/en/Gtk/NodeStore.xml
   trunk/gtk-sharp/gtk/NodeStore.cs
Log:

2005-04-26  Mike Kestner  <[EMAIL PROTECTED]>

        * gtk/NodeStore.cs : implement IEnumerable.


Modified: trunk/gtk-sharp/ChangeLog
===================================================================
--- trunk/gtk-sharp/ChangeLog   2005-04-26 13:34:25 UTC (rev 43593)
+++ trunk/gtk-sharp/ChangeLog   2005-04-26 13:45:27 UTC (rev 43594)
@@ -1,3 +1,7 @@
+2005-04-26  Mike Kestner  <[EMAIL PROTECTED]>
+
+       * gtk/NodeStore.cs : implement IEnumerable.
+
 2005-04-24  Dan Winship  <[EMAIL PROTECTED]>
 
        * pango/Attribute.cs: Base class for Pango attributes, a la

Modified: trunk/gtk-sharp/doc/en/Gtk/NodeStore.xml
===================================================================
--- trunk/gtk-sharp/doc/en/Gtk/NodeStore.xml    2005-04-26 13:34:25 UTC (rev 
43593)
+++ trunk/gtk-sharp/doc/en/Gtk/NodeStore.xml    2005-04-26 13:45:27 UTC (rev 
43594)
@@ -130,5 +130,18 @@
         </remarks>
       </Docs>
     </Member>
+    <Member MemberName="GetEnumerator">
+      <MemberSignature Language="C#" Value="public virtual 
System.Collections.IEnumerator GetEnumerator ();" />
+      <MemberType>Method</MemberType>
+      <ReturnValue>
+        <ReturnType>System.Collections.IEnumerator</ReturnType>
+      </ReturnValue>
+      <Parameters />
+      <Docs>
+        <summary>Gets an enumerator for the root nodes.</summary>
+        <returns>a <see cref="T:System.Collections.IEnumerator" /></returns>
+        <remarks>Children of root nodes are not enumerated.  You must traverse 
them independently.</remarks>
+      </Docs>
+    </Member>
   </Members>
-</Type>
\ No newline at end of file
+</Type>

Modified: trunk/gtk-sharp/gtk/NodeStore.cs
===================================================================
--- trunk/gtk-sharp/gtk/NodeStore.cs    2005-04-26 13:34:25 UTC (rev 43593)
+++ trunk/gtk-sharp/gtk/NodeStore.cs    2005-04-26 13:45:27 UTC (rev 43594)
@@ -26,7 +26,7 @@
        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 @@
                                return new GLib.GType 
(gtksharp_node_store_get_type ());
                        }
                }
+
+               public IEnumerator GetEnumerator ()
+               {
+                       return nodes.GetEnumerator ();
+               }
        }
 }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to