Exemplo n.º 1
0
 public ActionItem(ActionTreeNode node, IMenuItemContainer parent, uint itemSpacing)
 {
     DND.SourceSet(this);
     this.parentMenu    = parent;
     this.node          = node;
     this.VisibleWindow = false;
     this.CanFocus      = true;
     this.Events       |= Gdk.EventMask.KeyPressMask;
     this.itemSpacing   = itemSpacing;
     if (node.Action != null)
     {
         node.Action.ObjectChanged += OnActionChanged;
     }
 }