+
+ return routes;
+}
+
+
+void
+EditorGroupTabs::add_menu_items (Gtk::Menu* m, RouteGroup* g)
+{
+ using namespace Gtk::Menu_Helpers;
+
+ if (g) {
+ MenuList& items = m->items ();
+ items.push_back (MenuElem (_("Fit to Window"), sigc::bind (sigc::mem_fun (*_editor, &Editor::fit_route_group), g)));
+ }
+}
+
+RouteList
+EditorGroupTabs::selected_routes () const
+{
+ RouteList rl;
+
+ for (TrackSelection::iterator i = _editor->get_selection().tracks.begin(); i != _editor->get_selection().tracks.end(); ++i) {
+ RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i);
+ if (rtv) {
+ rl.push_back (rtv->route());
+ }
+ }
+
+ return rl;