diff options
author | Carl Hetherington <carl@carlh.net> | 2012-05-23 19:01:28 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-05-23 19:01:28 +0000 |
commit | 27e64c14394e309d6b2d2d911bbc4165d6f18263 (patch) | |
tree | a3c7ffba4d6e16479a94d3fa519b14410450b3b8 /gtk2_ardour | |
parent | 99c1aacc236fcba1f297804baf9f5d1b0825e2ee (diff) |
Rename Route Group -> Group in the GUI, and give busses
route group and automation menu items in their right-click
menus, not just tracks.
git-svn-id: svn://localhost/ardour2/branches/3.0@12399 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index 4d50a41272..8fc9b90140 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -665,30 +665,30 @@ RouteTimeAxisView::build_display_menu () build_playlist_menu (); items.push_back (MenuElem (_("Playlist"), *playlist_action_menu)); items.back().set_sensitive (_editor.get_selection().tracks.size() <= 1); + } - route_group_menu->detach (); - - WeakRouteList r; - for (TrackSelection::iterator i = _editor.get_selection().tracks.begin(); i != _editor.get_selection().tracks.end(); ++i) { - RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i); - if (rtv) { - r.push_back (rtv->route ()); - } - } - - if (r.empty ()) { - r.push_back (route ()); + route_group_menu->detach (); + + WeakRouteList r; + for (TrackSelection::iterator i = _editor.get_selection().tracks.begin(); i != _editor.get_selection().tracks.end(); ++i) { + RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i); + if (rtv) { + r.push_back (rtv->route ()); } - - route_group_menu->build (r); - items.push_back (MenuElem (_("Route Group"), *route_group_menu->menu ())); - - build_automation_action_menu (true); - items.push_back (MenuElem (_("Automation"), *automation_action_menu)); - - items.push_back (SeparatorElem()); + } + + if (r.empty ()) { + r.push_back (route ()); } + route_group_menu->build (r); + items.push_back (MenuElem (_("Group"), *route_group_menu->menu ())); + + build_automation_action_menu (true); + items.push_back (MenuElem (_("Automation"), *automation_action_menu)); + + items.push_back (SeparatorElem()); + int active = 0; int inactive = 0; TrackSelection const & s = _editor.get_selection().tracks; |