Example #1
0
        private void InternalReply(GLib.MountOperationResult result)
        {
            ReplyNativeDelegate unmanaged = class_abi.BaseOverride <ReplyNativeDelegate>(this.LookupGType(), "reply");

            if (unmanaged == null)
            {
                return;
            }

            unmanaged(this.Handle, (int)result);
        }
Example #2
0
 protected virtual void OnReply(GLib.MountOperationResult result)
 {
     GLib.Value      ret             = GLib.Value.Empty;
     GLib.ValueArray inst_and_params = new GLib.ValueArray(2);
     GLib.Value[]    vals            = new GLib.Value [2];
     vals [0] = new GLib.Value(this);
     inst_and_params.Append(vals [0]);
     vals [1] = new GLib.Value(result);
     inst_and_params.Append(vals [1]);
     g_signal_chain_from_overridden(inst_and_params.ArrayPtr, ref ret);
     foreach (GLib.Value v in vals)
     {
         v.Dispose();
     }
 }
Example #3
0
        private void InternalReply(GLib.MountOperationResult result)
        {
            ReplyNativeDelegate unmanaged = null;

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

            unmanaged(this.Handle, (int)result);
        }
Example #4
0
 public void EmitReply(GLib.MountOperationResult result)
 {
     g_mount_operation_reply(Handle, (int)result);
 }
Example #5
0
 protected virtual void OnReply(GLib.MountOperationResult result)
 {
     InternalReply(result);
 }