static void OverridePopulateContext(GLib.GType gtype, PopulateContextNativeDelegate callback) { unsafe { IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("populate_context")); *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback); } }
private void InternalPopulateContext(GtkSource.CompletionContext context) { PopulateContextNativeDelegate unmanaged = class_abi.BaseOverride <PopulateContextNativeDelegate>(this.LookupGType(), "populate_context"); if (unmanaged == null) { return; } unmanaged(this.Handle, context == null ? IntPtr.Zero : context.Handle); }