コード例 #1
0
 public DestroyNotifyWrapper(Gtk.DestroyNotify managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new DestroyNotifyNative(NativeCallback);
     }
 }
コード例 #2
0
 public void CreateToolbarInterp(Gnome.UIInfo uiinfo, Gtk.CallbackMarshal relay_func, IntPtr data, Gtk.DestroyNotify destroy_func)
 {
     CreateToolbarInterp(uiinfo, relay_func, destroy_func);
 }
コード例 #3
0
 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));
 }
コード例 #4
0
 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);
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
 public void RequestInteractionInterp(Gnome.DialogType dialog_type, Gtk.CallbackMarshal function, IntPtr data, Gtk.DestroyNotify destroy)
 {
     RequestInteractionInterp(dialog_type, function, destroy);
 }
コード例 #8
0
 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);
 }