2002-11-10 10:03:51 +00:00
|
|
|
|
|
|
|
namespace GtkSharp {
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
public delegate void GtkClipboardClearFuncNative(IntPtr clipboard, uint objid);
|
|
|
|
|
|
|
|
public class GtkClipboardClearFuncWrapper : GLib.DelegateWrapper {
|
|
|
|
|
|
|
|
public void NativeCallback (IntPtr clipboard, uint objid)
|
|
|
|
{
|
|
|
|
object[] _args = new object[2];
|
2003-07-23 17:19:21 +00:00
|
|
|
_args[0] = (Gtk.Clipboard) GLib.Object.GetObject(clipboard, false);
|
2002-11-10 10:03:51 +00:00
|
|
|
if (_args[0] == null)
|
|
|
|
_args[0] = new Gtk.Clipboard(clipboard);
|
|
|
|
_args[1] = Gtk.Clipboard.clipboard_objects[objid];
|
|
|
|
_managed ((Gtk.Clipboard) _args[0], _args[1]);
|
|
|
|
Gtk.Clipboard.clipboard_objects.Remove (objid);
|
|
|
|
}
|
|
|
|
|
|
|
|
public GtkClipboardClearFuncNative NativeDelegate;
|
|
|
|
protected Gtk.ClipboardClearFunc _managed;
|
|
|
|
|
2003-04-06 09:21:15 +00:00
|
|
|
public GtkClipboardClearFuncWrapper (Gtk.ClipboardClearFunc managed, object o) : base (o)
|
2002-11-10 10:03:51 +00:00
|
|
|
{
|
|
|
|
NativeDelegate = new GtkClipboardClearFuncNative (NativeCallback);
|
|
|
|
_managed = managed;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|