Beispiel #1
0
 static void OverrideActionsChanged(GLib.GType gtype, ActionsChangedNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("actions_changed"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Beispiel #2
0
        private void InternalActionsChanged()
        {
            ActionsChangedNativeDelegate unmanaged = class_abi.BaseOverride <ActionsChangedNativeDelegate>(this.LookupGType(), "actions_changed");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle);
        }
Beispiel #3
0
        private void InternalActionsChanged()
        {
            ActionsChangedNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle);
        }
Beispiel #4
0
		static void OverrideActionsChanged (GLib.GType gtype, ActionsChangedNativeDelegate callback)
		{
			GtkUIManagerClass class_iface = GetClassStruct (gtype, false);
			class_iface.ActionsChanged = callback;
			OverrideClassStruct (gtype, class_iface);
		}