[Gtk-sharp-list] GLib.Idle.Remove ()
John Luke
jluke@users.sourceforge.net
Sun, 21 Dec 2003 18:26:35 -0500
--=-74Bl1FX+ySTulHf4fCVF
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
Hello,
I was toying around with Alp's platano program trying to figure out why
gst# doesn't work and noticed he had added this for GLib.Idle and
perhaps never submitted it. Is it ok if I add it to cvs?
--=-74Bl1FX+ySTulHf4fCVF
Content-Disposition: attachment; filename=Idle.diff
Content-Type: text/x-patch; name=Idle.diff; charset=
Content-Transfer-Encoding: 7bit
Index: ChangeLog
===================================================================
RCS file: /cvs/public/gtk-sharp/ChangeLog,v
retrieving revision 1.590
diff -u -r1.590 ChangeLog
--- ChangeLog 17 Dec 2003 15:27:34 -0000 1.590
+++ ChangeLog 21 Dec 2003 23:11:56 -0000
@@ -1,3 +1,7 @@
+2003-12-21 John Luke <jluke@cfl.rr.com>
+
+ * glib/Idle.cs: add Remove method found in Alp Toker's platano
+
2003-12-16 Joe Shaw <joe@ximian.com>
* generator/SymbolTable.cs (MangleName): Add "lock" and "callback"
Index: glib/Idle.cs
===================================================================
RCS file: /cvs/public/gtk-sharp/glib/Idle.cs,v
retrieving revision 1.3
diff -u -r1.3 Idle.cs
--- glib/Idle.cs 15 Mar 2003 21:02:25 -0000 1.3
+++ glib/Idle.cs 21 Dec 2003 23:11:56 -0000
@@ -44,6 +44,15 @@
{
return g_idle_add (hndlr, IntPtr.Zero);
}
+
+ [DllImport("libglib-2.0-0.dll")]
+ static extern bool g_source_remove_by_funcs_user_data (IdleHandler d, IntPtr data);
+
+ public static bool Remove (IdleHandler hndlr)
+ {
+ return g_source_remove_by_funcs_user_data (hndlr, IntPtr.Zero);
+ }
+
}
}
--=-74Bl1FX+ySTulHf4fCVF--