diff options
author | Carl Hetherington <carl@carlh.net> | 2009-06-26 14:52:36 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-06-26 14:52:36 +0000 |
commit | d040d035743395ea2bed6794921d61f286898996 (patch) | |
tree | 0c21fdc7078d065b1abb4ce6da2514deb217ef54 /gtk2_ardour | |
parent | 911c484bd76f95d2dcdac9b7e8710f5b3de91385 (diff) |
Better fix for Amp visibility in the plugin automation menu.
git-svn-id: svn://localhost/ardour2/branches/3.0@5282 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/route_time_axis.cc | 12 | ||||
-rw-r--r-- | gtk2_ardour/route_time_axis.h | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc index a2451b5bfe..a31c84dba3 100644 --- a/gtk2_ardour/route_time_axis.cc +++ b/gtk2_ardour/route_time_axis.cc @@ -289,7 +289,7 @@ RouteTimeAxisView::post_construct () update_diskstream_display (); subplugin_menu.items().clear (); - _route->foreach_processor (bind (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu), _route)); + _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu)); _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_existing_processor_automation_curves)); reset_processor_automation_curves (); } @@ -2027,16 +2027,14 @@ RouteTimeAxisView::add_automation_child(Evoral::Parameter param, boost::shared_p void -RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p, boost::weak_ptr<Route> r) +RouteTimeAxisView::add_processor_to_subplugin_menu (boost::weak_ptr<Processor> p) { boost::shared_ptr<Processor> processor (p.lock ()); - boost::shared_ptr<Route> route (r.lock ()); - if (!processor || !route) { + if (!processor) { return; } - if (processor == route->amp ()) { - /* don't add an entry for the amp processor */ + if (!processor->visible ()) { return; } @@ -2169,7 +2167,7 @@ RouteTimeAxisView::processors_changed () subplugin_menu.items().clear (); - _route->foreach_processor (bind (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu), _route)); + _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_processor_to_subplugin_menu)); _route->foreach_processor (mem_fun (*this, &RouteTimeAxisView::add_existing_processor_automation_curves)); for (list<ProcessorAutomationInfo*>::iterator i = processor_automation.begin(); i != processor_automation.end(); ) { diff --git a/gtk2_ardour/route_time_axis.h b/gtk2_ardour/route_time_axis.h index ba81fc8bfe..34896e4639 100644 --- a/gtk2_ardour/route_time_axis.h +++ b/gtk2_ardour/route_time_axis.h @@ -188,7 +188,7 @@ protected: void processors_changed (); - void add_processor_to_subplugin_menu (boost::weak_ptr<ARDOUR::Processor>, boost::weak_ptr<ARDOUR::Route>); + void add_processor_to_subplugin_menu (boost::weak_ptr<ARDOUR::Processor>); void remove_processor_automation_node (ProcessorAutomationNode* pan); void processor_menu_item_toggled (RouteTimeAxisView::ProcessorAutomationInfo*, |