protected override Gtk.Widget CreateDragSource(Gtk.Widget dragWidget) { Gtk.Invisible invis = new Gtk.Invisible(); invis.Show(); invis.DragEnd += DragEnd; dragIndex = ToolDeItemize(dragWidget); return(invis); }
void DragEnd(object obj, Gtk.DragEndArgs args) { Gtk.Invisible invis = obj as Gtk.Invisible; invis.DragEnd -= DragEnd; invis.Destroy(); if (DND.DragWidget != null) { ToolItemize(DND.Cancel(), dragIndex); } dragIndex = -1; }
static InsensitiveManager () { map = new Hashtable (); invis = new Gtk.Invisible (); invis.ButtonPressEvent += ButtonPress; }
protected override Gtk.Widget CreateDragSource (Gtk.Widget dragWidget) { Gtk.Invisible invis = new Gtk.Invisible (); invis.Show (); invis.DragEnd += DragEnd; dragIndex = ToolDeItemize (dragWidget); return invis; }
static InsensitiveManager() { map = new Hashtable(); invis = new Gtk.Invisible(); invis.ButtonPressEvent += ButtonPress; }