public DestroyNotifyWrapper(Gtk.DestroyNotify managed) { this.managed = managed; if (managed != null) { NativeDelegate = new DestroyNotifyNative(NativeCallback); } }
public void CreateToolbarInterp(Gnome.UIInfo uiinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func) { CreateToolbarInterp(uiinfo, relay_func, destroy_func); }
public static uint AddFull(uint interval, Gtk.Function function, Gtk.CallbackMarshal marshal, IntPtr data, Gtk.DestroyNotify destroy) { if (marshal != null || destroy != null) { Console.WriteLine("marshal, data, and destroy parameters ignored by Gtk.Timeout.AddFull ()."); } return(Add(interval, function)); }
public void InsertMenusInterp(string path, Gnome.UIInfo menuinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func) { InsertMenusInterp(path, menuinfo, relay_func, destroy_func); }
public void CreateToolbarInterp(Gnome.UIInfo uiinfo, Gtk.CallbackMarshal relay_func, Gtk.DestroyNotify destroy_func) { IntPtr native_uiinfo = GLib.Marshaller.StructureToPtrAlloc(uiinfo); GtkSharp.CallbackMarshalWrapper relay_func_wrapper = new GtkSharp.CallbackMarshalWrapper(relay_func); GtkSharp.DestroyNotifyWrapper destroy_func_wrapper = new GtkSharp.DestroyNotifyWrapper(destroy_func); gnome_app_create_toolbar_interp(Handle, native_uiinfo, relay_func_wrapper.NativeDelegate, IntPtr.Zero, destroy_func_wrapper.NativeDelegate); uiinfo = Gnome.UIInfo.New(native_uiinfo); Marshal.FreeHGlobal(native_uiinfo); }
public void InsertMenusInterp(string path, Gnome.UIInfo menuinfo, Gtk.CallbackMarshal relay_func, Gtk.DestroyNotify destroy_func) { IntPtr native_path = GLib.Marshaller.StringToPtrGStrdup(path); IntPtr native_menuinfo = GLib.Marshaller.StructureToPtrAlloc(menuinfo); GtkSharp.CallbackMarshalWrapper relay_func_wrapper = new GtkSharp.CallbackMarshalWrapper(relay_func); GtkSharp.DestroyNotifyWrapper destroy_func_wrapper = new GtkSharp.DestroyNotifyWrapper(destroy_func); gnome_app_insert_menus_interp(Handle, native_path, native_menuinfo, relay_func_wrapper.NativeDelegate, IntPtr.Zero, destroy_func_wrapper.NativeDelegate); GLib.Marshaller.Free(native_path); menuinfo = Gnome.UIInfo.New(native_menuinfo); Marshal.FreeHGlobal(native_menuinfo); }
public void RequestInteractionInterp(Gnome.DialogType dialog_type, Gtk.CallbackMarshal function, IntPtr data, Gtk.DestroyNotify destroy) { RequestInteractionInterp(dialog_type, function, destroy); }
public void RequestInteractionInterp(Gnome.DialogType dialog_type, Gtk.CallbackMarshal function, Gtk.DestroyNotify destroy) { GtkSharp.CallbackMarshalWrapper function_wrapper = new GtkSharp.CallbackMarshalWrapper(function); GtkSharp.DestroyNotifyWrapper destroy_wrapper = new GtkSharp.DestroyNotifyWrapper(destroy); gnome_client_request_interaction_interp(Handle, (int)dialog_type, function_wrapper.NativeDelegate, IntPtr.Zero, destroy_wrapper.NativeDelegate); }