summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-09 14:04:05 +0200
committerRobin Gareus <robin@gareus.org>2017-08-09 16:29:24 +0200
commitcba622cdcecdba2fd88556c4364646c96f4451c6 (patch)
tree939e71dba666100de6c090f27333751205362c26 /gtk2_ardour/editor.cc
parentbbc8c1354e98abd1fa71e9e0346747c49df6c9c9 (diff)
Add Lua bindings to set toggle-actions
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r--gtk2_ardour/editor.cc8
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 ();