summaryrefslogtreecommitdiff
path: root/gtk2_ardour/time_axis_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-09 17:27:56 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-09 17:27:56 +0000
commit3600f60a030de8bd5cca3fa983f3e926a084a1c0 (patch)
tree20277cb9a40471ed9e4f5ada7ecbef40cded65ce /gtk2_ardour/time_axis_view.cc
parent5b520324ceab2559723b4ef5127301fa61ff4846 (diff)
Move get_child_list() into TimeAxisView.
git-svn-id: svn://localhost/ardour2/branches/3.0@7574 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view.cc')
-rw-r--r--gtk2_ardour/time_axis_view.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc
index 631f6428e5..66eb6dbc89 100644
--- a/gtk2_ardour/time_axis_view.cc
+++ b/gtk2_ardour/time_axis_view.cc
@@ -1320,3 +1320,20 @@ TimeAxisView::preset_height (Height h)
/* NOTREACHED */
return 0;
}
+
+/** @return Child time axis views that are not hidden */
+TimeAxisView::Children
+TimeAxisView::get_child_list ()
+{
+ Children c;
+
+ for (Children::iterator i = children.begin(); i != children.end(); ++i) {
+ if (!(*i)->hidden()) {
+ c.push_back(*i);
+ }
+ }
+
+ return c;
+}
+
+