diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-09 14:04:05 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-09 16:29:24 +0200 |
commit | cba622cdcecdba2fd88556c4364646c96f4451c6 (patch) | |
tree | 939e71dba666100de6c090f27333751205362c26 /gtk2_ardour/editor.cc | |
parent | bbc8c1354e98abd1fa71e9e0346747c49df6c9c9 (diff) |
Add Lua bindings to set toggle-actions
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 38fad22ddf..9b7f112eda 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -1132,7 +1132,7 @@ Editor::deferred_control_scroll (framepos_t /*target*/) } void -Editor::access_action (std::string action_group, std::string action_item) +Editor::access_action (const std::string& action_group, const std::string& action_item) { if (!_session) { return; @@ -1149,6 +1149,12 @@ Editor::access_action (std::string action_group, std::string action_item) } void +Editor::set_toggleaction (const std::string& action_group, const std::string& action_item, bool s) +{ + ActionManager::set_toggleaction_state (action_group.c_str(), action_item.c_str(), s); +} + +void Editor::on_realize () { Realized (); |