mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 11:34:47 +02:00
* glade/XML.custom: add SetCustomHandler() wrapper
svn path=/trunk/gtk-sharp/; revision=8453
This commit is contained in:
parent
f95bf9dbbd
commit
d6d4267bc5
@ -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>
|
2002-10-20 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* glib/Object.cs: Avoid recursive calls with the previous operator
|
* glib/Object.cs: Avoid recursive calls with the previous operator
|
||||||
|
@ -6,6 +6,17 @@
|
|||||||
//
|
//
|
||||||
// This code is inserted after the automatically generated code.
|
// 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")]
|
[DllImport("gtksharpglue")]
|
||||||
static extern string gtksharp_glade_xml_get_filename (IntPtr raw);
|
static extern string gtksharp_glade_xml_get_filename (IntPtr raw);
|
||||||
|
Loading…
Reference in New Issue
Block a user