diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-25 00:16:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-25 00:16:08 +0200 |
commit | 9c622e3c99996e947e62d36020cd9a490328fec9 (patch) | |
tree | 10231f231a1103b2e5e19a5b7cc538e5dfdce989 /gtk2_ardour/ardour_ui_options.cc | |
parent | 55fb20f4912e74d71c3e6c171d916d09fbe8eeda (diff) |
add optional buttons to trigger lua scripted actions.
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index 7e098cab38..a0e6384b23 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -424,6 +424,16 @@ ARDOUR_UI::parameter_changed (std::string p) } else if (p == "waveform-cache-size") { /* GUI option has units of megabytes; image cache uses units of bytes */ ArdourCanvas::WaveView::set_image_cache_size (UIConfiguration::instance().get_waveform_cache_size() * 1048576); + } else if (p == "action-table-columns") { + const uint32_t cols = UIConfiguration::instance().get_action_table_columns (); + for (int i = 0; i < 9; ++i) { + const int col = i / 3; + if (cols & (1<<col)) { + action_script_call_btn[i].show(); + } else { + action_script_call_btn[i].hide(); + } + } } } |