Ejemplo n.º 1
0
        public override void Wrap(object obj, bool initialized)
        {
            base.Wrap(obj, initialized);

            DND.DestSet(gtkfixed, true);
            gtkfixed.DragDrop         += FixedDragDrop;
            gtkfixed.DragDataReceived += FixedDragDataReceived;
        }
        internal ActionMenu(Widget wrapper, IMenuItemContainer parentMenu, ActionTreeNode node)
        {
            DND.DestSet(this, true);
            parentNode          = node;
            this.parentMenu     = parentMenu;
            this.wrapper        = wrapper;
            this.nodes          = node.Children;
            table               = new Gtk.Table(0, 0, false);
            table.ColumnSpacing = 5;
            table.RowSpacing    = 5;
            table.BorderWidth   = 5;
            this.AppPaintable   = true;

            Add(table);

            Fill();

            parentNode.ChildNodeAdded   += OnChildAdded;
            parentNode.ChildNodeRemoved += OnChildRemoved;
        }
Ejemplo n.º 3
0
 public ActionMenuBar()
 {
     DND.DestSet(this, true);
 }
 public ActionToolbar()
 {
     DND.DestSet(this, true);
     this.ShowArrow = false;
 }