* glade/XML.custom: add SetCustomHandler() wrapper

svn path=/trunk/gtk-sharp/; revision=8453
This commit is contained in:
Vladimir Vukicevic 2002-10-21 19:42:23 +00:00
parent f95bf9dbbd
commit d6d4267bc5
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-10-21 Vladimir Vukicevic <vladimir@pobox.com>
* glade/XML.custom: add SetCustomHandler() wrapper
2002-10-20 Miguel de Icaza <miguel@ximian.com>
* glib/Object.cs: Avoid recursive calls with the previous operator

View file

@ -6,6 +6,17 @@
//
// This code is inserted after the automatically generated code.
// keep this around so it doesn't get GC'd
static GtkSharp.GladeXMLCustomWidgetHandlerWrapper callback_wrapper = null;
[DllImport("glade-2.0")]
static extern void glade_set_custom_handler (GtkSharp.GladeXMLCustomWidgetHandlerNative handler, IntPtr user_data);
static public void SetCustomHandler (Glade.XMLCustomWidgetHandler handler)
{
callback_wrapper = new GtkSharp.GladeXMLCustomWidgetHandlerWrapper (handler);
glade_set_custom_handler (callback_wrapper.NativeDelegate, IntPtr.Zero);
}
[DllImport("gtksharpglue")]
static extern string gtksharp_glade_xml_get_filename (IntPtr raw);