mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-04-20 07:32:27 +00:00
add Idle.Remove method
svn path=/trunk/gtk-sharp/; revision=21483
This commit is contained in:
parent
ec87d5d92d
commit
7e9700901f
|
@ -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"
|
||||
|
|
|
@ -44,6 +44,15 @@ namespace GLib {
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue