diff options
author | Robin Gareus <robin@gareus.org> | 2019-12-12 03:01:31 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-12-12 03:02:48 +0100 |
commit | a92dddda256ca55b49fc6de6d2ba657816cd5b67 (patch) | |
tree | 1eff95b02a91d5eeca3af1c85a08ae1665a27456 /gtk2_ardour/automation_time_axis.cc | |
parent | ff7fe6d4d6c0d966327f553118255444f5b589e3 (diff) |
Fix automation dropdown menu-item active state
Extra XML/GUI has not been in use since ages.
Automation Lane visibility is saved as GUIObjectState.
This properly marks DropDown Menu items as active when a
Plugin Automation Lane is displayed
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 92af663e76..17e4877f3a 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -1009,35 +1009,6 @@ AutomationTimeAxisView::set_state (const XMLNode&, int /*version*/) return 0; } -void -AutomationTimeAxisView::what_has_visible_automation (const boost::shared_ptr<Automatable>& automatable, set<Evoral::Parameter>& visible) -{ - /* this keeps "knowledge" of how we store visibility information - in XML private to this class. - */ - - assert (automatable); - - Automatable::Controls& controls (automatable->controls()); - - for (Automatable::Controls::iterator i = controls.begin(); i != controls.end(); ++i) { - - boost::shared_ptr<AutomationControl> ac = boost::dynamic_pointer_cast<AutomationControl> (i->second); - - if (ac && ac->alist()) { - - const XMLNode* gui_node = ac->extra_xml ("GUI"); - - if (gui_node) { - bool shown; - if (gui_node->get_property ("shown", shown) && shown) { - visible.insert (i->first); - } - } - } - } -} - /** @return true if this view has any automation data to display */ bool |