add Idle.Remove method
svn path=/trunk/gtk-sharp/; revision=21483
This commit is contained in:
parent
ec87d5d92d
commit
7e9700901f
2 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue