RouteGroupMenu::build (WeakRouteList const & s)
{
assert (!s.empty ());
-
+
using namespace Menu_Helpers;
_subject = s;
_inhibit_group_selected = true;
delete _menu;
-
+
/* Note: don't use manage() here, otherwise if our _menu object is attached as a submenu
and its parent is then destroyed, our _menu object will be deleted and we'll have no
way of knowing about it. Without manage(), when the above happens our _menu's gobject
_menu = new Menu;
MenuList& items = _menu->items ();
-
- items.push_back (MenuElem (_("New group..."), sigc::mem_fun (*this, &RouteGroupMenu::new_group)));
+
+ items.push_back (MenuElem (_("New Group..."), sigc::mem_fun (*this, &RouteGroupMenu::new_group)));
items.push_back (SeparatorElem ());
RadioMenuItem::Group group;
- items.push_back (RadioMenuElem (group, _("No group")));
+ items.push_back (RadioMenuElem (group, _("No Group")));
RadioMenuItem* i = static_cast<RadioMenuItem *> (&items.back ());
i->signal_activate().connect (sigc::bind (sigc::mem_fun (*this, &RouteGroupMenu::set_group), (RouteGroup *) 0));