Author: miguel
Date: 2007-07-20 19:16:46 -0400 (Fri, 20 Jul 2007)
New Revision: 82396
Modified:
trunk/olive/class/agclr/ChangeLog
trunk/olive/class/agclr/Internal.cs
trunk/olive/class/agmono/Mono/ChangeLog
trunk/olive/class/agmono/Mono/NativeMethods.cs
Log:
Add binding for the collection.RemoveAt meethod
Modified: trunk/olive/class/agclr/ChangeLog
===================================================================
--- trunk/olive/class/agclr/ChangeLog 2007-07-20 22:49:36 UTC (rev 82395)
+++ trunk/olive/class/agclr/ChangeLog 2007-07-20 23:16:46 UTC (rev 82396)
@@ -1,3 +1,7 @@
+2007-07-20 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * Internal.cs (RemoveAt): implement.
+
2007-07-03 Miguel de Icaza <[EMAIL PROTECTED]>
* Internal.cs: Propagate errors from mutated collections on
Modified: trunk/olive/class/agclr/Internal.cs
===================================================================
--- trunk/olive/class/agclr/Internal.cs 2007-07-20 22:49:36 UTC (rev 82395)
+++ trunk/olive/class/agclr/Internal.cs 2007-07-20 23:16:46 UTC (rev 82396)
@@ -91,8 +91,7 @@
public void RemoveAt (int index)
{
- throw new NotImplementedException ();
-
+ NativeMethods.collection_remove_at (native, index);
}
//
Modified: trunk/olive/class/agmono/Mono/ChangeLog
===================================================================
--- trunk/olive/class/agmono/Mono/ChangeLog 2007-07-20 22:49:36 UTC (rev
82395)
+++ trunk/olive/class/agmono/Mono/ChangeLog 2007-07-20 23:16:46 UTC (rev
82396)
@@ -1,3 +1,7 @@
+2007-07-20 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * NativeMethods.cs (collection_remove_at): Add new method.
+
2007-07-12 Chris Toshok <[EMAIL PROTECTED]>
* NativeMethods.cs: add dllimports for uielement_capture_mouse and
Modified: trunk/olive/class/agmono/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agmono/Mono/NativeMethods.cs 2007-07-20 22:49:36 UTC
(rev 82395)
+++ trunk/olive/class/agmono/Mono/NativeMethods.cs 2007-07-20 23:16:46 UTC
(rev 82396)
@@ -167,6 +167,9 @@
public extern static bool collection_remove (IntPtr collection,
IntPtr value);
[DllImport("moon")]
+ public extern static bool collection_remove_at (IntPtr
collection, int index);
+
+ [DllImport("moon")]
public extern static void collection_insert (IntPtr collection,
int index, IntPtr value);
[DllImport("moon")]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches