diff options
author | David Robillard <d@drobilla.net> | 2015-03-05 22:03:32 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-06 04:14:00 -0500 |
commit | c9a053c47a7fbe0298acbb4d04d8af08db156111 (patch) | |
tree | 1336ab397b7e76be86577310e4af2d0b491bc28e /gtk2_ardour/automation_time_axis.cc | |
parent | 818ed5fe12b295e2d3588e0c4d15adb2bae0f5e5 (diff) |
Hide automation state options for MIDI controls.
These don't do anything, except mislead the user into expecting this stuff
works like track automation.
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/automation_time_axis.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc index 60552ce14e..aa00aa570c 100644 --- a/gtk2_ardour/automation_time_axis.cc +++ b/gtk2_ardour/automation_time_axis.cc @@ -471,7 +471,10 @@ AutomationTimeAxisView::set_height (uint32_t h) first_call_to_set_height = false; if (h >= preset_height (HeightNormal)) { - auto_button.show(); + if (!(_parameter.type() >= MidiCCAutomation && + _parameter.type() <= MidiChannelPressureAutomation)) { + auto_button.show(); + } name_label.show(); hide_button.show(); @@ -560,7 +563,10 @@ AutomationTimeAxisView::build_display_menu () (AutoState) Touch))); auto_touch_item = dynamic_cast<Gtk::CheckMenuItem*>(&as_items.back()); - items.push_back (MenuElem (_("State"), *auto_state_menu)); + if (!(_parameter.type() >= MidiCCAutomation && + _parameter.type() <= MidiChannelPressureAutomation)) { + items.push_back (MenuElem (_("State"), *auto_state_menu)); + } /* mode menu */ |