Exemplo n.º 1
0
        public static void RequestTargets(Gtk.Clipboard clipboard, ClipboardTargetsReceivedFunc cb)
        {
            var cb_wrapper = new ClipboardTargetsReceivedFuncWrapper(cb);

            cb_wrapper.PersistUntilCalled();
            gtk_clipboard_request_targets(clipboard.Handle, cb_wrapper.NativeDelegate, IntPtr.Zero);
        }
Exemplo n.º 2
0
 internal ClipboardTargetsReceivedFuncWrapper(ClipboardTargetsReceivedFunc managed)
 {
     this.managed = managed;
     if (managed != null)
     {
         NativeDelegate = new ClipboardTargetsReceivedFuncNative(NativeCallback);
     }
 }