summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rhythm_ferret.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-03-17 20:54:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-03-17 20:54:03 +0000
commit997e4b1f9cd7ccfc704b7c035051da7f60d831e7 (patch)
tree1236e40183b677abf4a2882e4cfe8e0a345eb24d /gtk2_ardour/rhythm_ferret.cc
parent19a4b990325577fc949ccd5d5fbad4520eb1df56 (diff)
merge with 2.0-ongoing @ rev 3147
git-svn-id: svn://localhost/ardour2/branches/3.0@3152 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/rhythm_ferret.cc')
-rw-r--r--gtk2_ardour/rhythm_ferret.cc17
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk2_ardour/rhythm_ferret.cc b/gtk2_ardour/rhythm_ferret.cc
index 83852b33b3..63440e7ab1 100644
--- a/gtk2_ardour/rhythm_ferret.cc
+++ b/gtk2_ardour/rhythm_ferret.cc
@@ -191,7 +191,7 @@ RhythmFerret::run_analysis ()
}
for (RegionSelection::iterator i = regions.begin(); i != regions.end(); ++i) {
- (*i)->get_time_axis_view().show_temporary_lines (current_results);
+ (*i)->get_time_axis_view().show_feature_lines (current_results);
}
}
@@ -269,7 +269,7 @@ RhythmFerret::do_split_action ()
tmp = i;
++tmp;
- (*i)->get_time_axis_view().hide_temporary_lines ();
+ (*i)->get_time_axis_view().hide_feature_lines ();
editor.split_region_at_points ((*i)->region(), current_results, false);
@@ -286,3 +286,16 @@ RhythmFerret::set_session (Session* s)
ArdourDialog::set_session (s);
current_results.clear ();
}
+
+static void hide_time_axis_features (TimeAxisView& tav)
+{
+ tav.hide_feature_lines ();
+}
+
+void
+RhythmFerret::on_hide ()
+{
+ editor.foreach_time_axis_view (sigc::ptr_fun (hide_time_axis_features));
+ ArdourDialog::on_hide ();
+}
+