Exemplo n.º 1
0
 static void OverridePostActivate(GLib.GType gtype, PostActivateNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("post_activate"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Exemplo n.º 2
0
        private void InternalPostActivate(Gtk.Action action)
        {
            PostActivateNativeDelegate unmanaged = class_abi.BaseOverride <PostActivateNativeDelegate>(this.LookupGType(), "post_activate");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle);
        }
Exemplo n.º 3
0
        private void InternalPostActivate(Gtk.Action action)
        {
            PostActivateNativeDelegate unmanaged = null;

            unsafe {
                IntPtr *raw_ptr = (IntPtr *)(((long)this.LookupGType().GetThresholdType().GetClassPtr()) + (long)class_abi.GetFieldOffset("post_activate"));
                unmanaged = (PostActivateNativeDelegate)Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PostActivateNativeDelegate));
            }
            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, action == null ? IntPtr.Zero : action.Handle);
        }
Exemplo n.º 4
0
		static void OverridePostActivate (GLib.GType gtype, PostActivateNativeDelegate callback)
		{
			GtkUIManagerClass class_iface = GetClassStruct (gtype, false);
			class_iface.PostActivate = callback;
			OverrideClassStruct (gtype, class_iface);
		}
Exemplo n.º 5
0
		static void OverridePostActivate (GLib.GType gtype, PostActivateNativeDelegate callback)
		{
			OverrideVirtualMethod (gtype, "post-activate", callback);
		}
Exemplo n.º 6
0
 static void OverridePostActivate(GLib.GType gtype, PostActivateNativeDelegate callback)
 {
     OverrideVirtualMethod(gtype, "post-activate", callback);
 }