diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-06 22:16:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-06 22:17:58 +0200 |
commit | 7009ff030070c1ce9da23c00d8153e763f65901a (patch) | |
tree | 8c0a2015af098e35e9abd3c54a7ff05015965b7a /gtk2_ardour/editor.cc | |
parent | 1cbbbf6aad302e5aa91c470984fb8a7dd3ad39f1 (diff) |
Update Selection API to include all Stripables
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index d84d92267d..38fad22ddf 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5552,15 +5552,15 @@ Editor::foreach_time_axis_view (sigc::slot<void,TimeAxisView&> theslot) } } -/** Find a RouteTimeAxisView by the ID of its route */ -RouteTimeAxisView* -Editor::get_route_view_by_route_id (const PBD::ID& id) const +/** Find a StripableTimeAxisView by the ID of its stripable */ +StripableTimeAxisView* +Editor::get_stripable_time_axis_by_id (const PBD::ID& id) const { - RouteTimeAxisView* v; + StripableTimeAxisView* v; for (TrackViewList::const_iterator i = track_views.begin(); i != track_views.end(); ++i) { - if((v = dynamic_cast<RouteTimeAxisView*>(*i)) != 0) { - if(v->route()->id() == id) { + if((v = dynamic_cast<StripableTimeAxisView*>(*i)) != 0) { + if(v->stripable()->id() == id) { return v; } } |