summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2019-09-03 04:31:35 +0200
committerRobin Gareus <robin@gareus.org>2019-09-03 04:31:35 +0200
commitb340dc7282a3629929cd91223fe3505b2ad92c58 (patch)
treef55c77ca15fc393324a3d8a60536bf48abdb0f20 /gtk2_ardour/editor_actions.cc
parentab68ed413117ae6ae08a33d453f98f42857433dc (diff)
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
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index 76dba12ff7..1e9b4c46ef 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -482,10 +482,12 @@ Editor::register_actions ()
ActionManager::register_action (editor_actions, X_("cycle-zoom-focus"), _("Next Zoom Focus"), sigc::mem_fun (*this, &Editor::cycle_zoom_focus));
+ Glib::RefPtr<ActionGroup> lua_script_actions = ActionManager::create_action_group (bindings, X_("LuaAction"));
+
for (int i = 1; i <= MAX_LUA_ACTION_SCRIPTS; ++i) {
string const a = string_compose (X_("script-action-%1"), i);
string const n = string_compose (_("Unset #%1"), i);
- act = ActionManager::register_action (editor_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
+ act = ActionManager::register_action (lua_script_actions, a.c_str(), n.c_str(), sigc::bind (sigc::mem_fun (*this, &Editor::trigger_script), i - 1));
act->set_tooltip (_("no action bound"));
act->set_sensitive (false);
}