summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2007-10-02 16:37:26 +0000
committerCarl Hetherington <carl@carlh.net>2007-10-02 16:37:26 +0000
commit9bcd3f1d167428916664e56d489477e8840eec3c (patch)
treeb28c697b898b96163b553955343d2fee6b787fc2 /gtk2_ardour
parent5ea5cc60346636dcb781b86277373f3d8a3e837b (diff)
Make hide all automation work again.
git-svn-id: svn://localhost/ardour2/trunk@2507 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/route_time_axis.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 2e83c2e030..fa9afaafa7 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1603,6 +1603,17 @@ RouteTimeAxisView::hide_all_automation ()
{
no_redraw = true;
+ /* Hide our automation */
+
+ for (map<ARDOUR::Parameter, RouteAutomationNode*>::iterator i = _automation_tracks.begin(); i != _automation_tracks.end(); ++i) {
+ i->second->track->set_marked_for_display (false);
+ i->second->track->hide ();
+ i->second->track->get_state_node()->add_property ("shown", X_("no"));
+ i->second->menu_item->set_active (false);
+ }
+
+ /* Hide processor automation */
+
for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ++i) {
for (vector<ProcessorAutomationNode*>::iterator ii = (*i)->lines.begin(); ii != (*i)->lines.end(); ++ii) {
(*ii)->menu_item->set_active (false);
@@ -1933,7 +1944,7 @@ void
RouteTimeAxisView::processors_changed ()
{
using namespace Menu_Helpers;
-
+
for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ++i) {
(*i)->valid = false;
}