diff options
author | Carl Hetherington <carl@carlh.net> | 2010-07-19 23:26:40 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-07-19 23:26:40 +0000 |
commit | e2b5f355fb57ea082428ee0ab29407e15fdfb9b8 (patch) | |
tree | c6ba15b6813365fa4ddd3ee2503010d0a39e53a2 /gtk2_ardour/group_tabs.cc | |
parent | 5b3982fed0e99925b53dcdbf0293237791965d4c (diff) |
Various route group menu tweaks.
git-svn-id: svn://localhost/ardour2/branches/3.0@7446 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/group_tabs.cc')
-rw-r--r-- | gtk2_ardour/group_tabs.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/group_tabs.cc b/gtk2_ardour/group_tabs.cc index d69bc7a039..f899e8fa78 100644 --- a/gtk2_ardour/group_tabs.cc +++ b/gtk2_ardour/group_tabs.cc @@ -309,6 +309,7 @@ GroupTabs::get_menu (RouteGroup* g) items.push_back (MenuElem (_("Edit..."), sigc::bind (sigc::mem_fun (*this, &GroupTabs::edit_group), g))); items.push_back (MenuElem (_("Subgroup"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::subgroup), g))); items.push_back (MenuElem (_("Collect"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::collect), g))); + items.push_back (MenuElem (_("Remove"), sigc::bind (sigc::mem_fun (*this, &GroupTabs::remove_group), g))); } add_menu_items (_menu, g); @@ -505,3 +506,8 @@ GroupTabs::set_activation (RouteGroup* g, bool a) g->set_active (a, this); } +void +GroupTabs::remove_group (RouteGroup* g) +{ + _session->remove_route_group (*g); +} |