Beispiel #1
0
        protected override Gtk.Widget CreateDragSource(Gtk.Widget dragWidget)
        {
            Gtk.Invisible invis = new Gtk.Invisible();
            invis.Show();
            invis.DragEnd += DragEnd;

            dragIndex = ToolDeItemize(dragWidget);
            return(invis);
        }
Beispiel #2
0
        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;
		}
Beispiel #4
0
		protected override Gtk.Widget CreateDragSource (Gtk.Widget dragWidget)
		{
			Gtk.Invisible invis = new Gtk.Invisible ();
			invis.Show ();
			invis.DragEnd += DragEnd;

			dragIndex = ToolDeItemize (dragWidget);
			return invis;
		}
Beispiel #5
0
 static InsensitiveManager()
 {
     map   = new Hashtable();
     invis = new Gtk.Invisible();
     invis.ButtonPressEvent += ButtonPress;
 }