From b340dc7282a3629929cd91223fe3505b2ad92c58 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 3 Sep 2019 04:31:35 +0200 Subject: Increase available Lua action script slots * Reserve 32 dedicated editor actions for scripts * Limit number of toolbar buttons * Use dedicated binding-group for keyboard-shortcuts * Tweak Preferences layout of toolbar pane --- gtk2_ardour/ardour_ui.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/ardour_ui.h') diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 39c0546a7e..5425311e7c 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -178,7 +178,8 @@ namespace ArdourWidgets { class Tabbable; } -#define MAX_LUA_ACTION_SCRIPTS 12 +#define MAX_LUA_ACTION_SCRIPTS 32 +#define MAX_LUA_ACTION_BUTTONS 12 class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr, public TransportControlProvider { @@ -527,7 +528,7 @@ private: ArdourWidgets::ArdourButton feedback_alert_button; ArdourWidgets::ArdourButton error_alert_button; - ArdourWidgets::ArdourButton action_script_call_btn[MAX_LUA_ACTION_SCRIPTS]; + ArdourWidgets::ArdourButton action_script_call_btn[MAX_LUA_ACTION_BUTTONS]; Gtk::Table action_script_table; Gtk::VBox alert_box; -- cgit v1.2.3