diff --git a/ChangeLog b/ChangeLog index 15cdf70f5..386fd244e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-10-19 Duncan Mak + + * glib/Source.cs: Added. + 2002-10-19 Miguel de Icaza * glib/Object.cs: Added operator != and operator == overloads. diff --git a/glib/Source.cs b/glib/Source.cs new file mode 100644 index 000000000..bc86a32a3 --- /dev/null +++ b/glib/Source.cs @@ -0,0 +1,22 @@ +// GLib.Source.cs - Source class implementation +// +// Author: Duncan Mak +// +// (c) 2002 Mike Kestner + +namespace GLib { + + using System; + using System.Runtime.InteropServices; + + public class Source { + + [DllImport("glib-2.0")] + static extern bool g_source_remove (uint tag); + + public static bool Remove (uint tag) + { + return g_source_remove (tag); + } + } +}