protected override MenuList OnGetMenuItems() { List <Docky.Menus.MenuItem> items = new List <Docky.Menus.MenuItem> (); for (int i = clips.Count; i > 0; i--) { items.Add(new ClippyMenuItem(this, i, clips [i - 1])); } MenuList list = base.OnGetMenuItems(); if (items.Count > 0) { list[MenuListContainer.Actions].InsertRange(0, items); list[MenuListContainer.Footer].Add(new Docky.Menus.MenuItem("_Clear", "gtk-clear", delegate { clipboard.Clear(); clips.Clear(); curPos = 0; Updated(); })); } return(list); }
public void Clear() => _clipboard.Clear();