diff options
author | Carl Hetherington <carl@carlh.net> | 2011-02-23 01:04:10 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-02-23 01:04:10 +0000 |
commit | 6f2078a0e2f4aac36406e951d8accc67f376d098 (patch) | |
tree | 496a8724a2f650880625524d0c2ecc907fac2008 /gtk2_ardour/track_selection.h | |
parent | f9e3a8b59fe3af25665d257601874166c8f722d6 (diff) |
Make track context menu height option work for all selected tracks.
git-svn-id: svn://localhost/ardour2/branches/3.0@8935 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/track_selection.h')
-rw-r--r-- | gtk2_ardour/track_selection.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/track_selection.h b/gtk2_ardour/track_selection.h index 46c04183a4..68ec3b7bd6 100644 --- a/gtk2_ardour/track_selection.h +++ b/gtk2_ardour/track_selection.h @@ -36,6 +36,13 @@ public: TrackViewList add (TrackViewList const &); template <typename Function> + void foreach_time_axis (Function f) { + for (iterator i = begin(); i != end(); ++i) { + f (*i); + } + } + + template <typename Function> void foreach_route_ui (Function f) { for (iterator i = begin(); i != end(); ++i) { RouteUI* t = dynamic_cast<RouteUI*> (*i); |