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, 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); }