Esempio n. 1
0
 static void OverrideListRowActivated(GLib.GType gtype, ListRowActivatedNativeDelegate callback)
 {
     unsafe {
         IntPtr *raw_ptr = (IntPtr *)(((long)gtype.GetClassPtr()) + (long)class_abi.GetFieldOffset("row_activated"));
         *raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate)callback);
     }
 }
Esempio n. 2
0
        private void InternalListRowActivated(Gtk.ListBoxRow row)
        {
            ListRowActivatedNativeDelegate unmanaged = class_abi.BaseOverride <ListRowActivatedNativeDelegate>(this.LookupGType(), "row_activated");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, row == null ? IntPtr.Zero : row.Handle);
        }
Esempio n. 3
0
        private void InternalListRowActivated(Gtk.ListBoxRow row)
        {
            ListRowActivatedNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, row == null ? IntPtr.Zero : row.Handle);
        }