public IconSelectorMenu (IProject project) { this.project = project; // Stock icon selector IconSelectorMenuItem selStock = new IconSelectorMenuItem (new StockIconSelectorItem ()); selStock.IconSelected += OnStockSelected; Insert (selStock, -1); // Project icon selector if (project != null && project.IconFactory.Icons.Count > 0) { IconSelectorMenuItem selProject = new IconSelectorMenuItem (new ProjectIconSelectorItem (project)); selProject.IconSelected += OnStockSelected; Insert (selProject, -1); } Insert (new Gtk.SeparatorMenuItem (), -1); Gtk.MenuItem it = new Gtk.MenuItem (Catalog.GetString ("More...")); it.Activated += OnSetStockActionType; Insert (it, -1); }
public IconSelectorMenu(IProject project) { this.project = project; // Stock icon selector IconSelectorMenuItem selStock = new IconSelectorMenuItem(new StockIconSelectorItem()); selStock.IconSelected += OnStockSelected; Insert(selStock, -1); // Project icon selector if (project != null && project.IconFactory.Icons.Count > 0) { IconSelectorMenuItem selProject = new IconSelectorMenuItem(new ProjectIconSelectorItem(project)); selProject.IconSelected += OnStockSelected; Insert(selProject, -1); } Insert(new Gtk.SeparatorMenuItem(), -1); Gtk.MenuItem it = new Gtk.MenuItem(Catalog.GetString("More...")); it.Activated += OnSetStockActionType; Insert(it, -1); }