diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-14 15:06:24 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-14 15:16:23 +0200 |
commit | 4d74b5e42074300c77d48e0c327218387f0ec361 (patch) | |
tree | 90a40e10f9a007583f19eaa201b96d53a7981fe7 /gtk2_ardour/editor_actions.cc | |
parent | 15722b957c3fef2cc833b2b258a502409c7fbbc2 (diff) |
action script GUI details (sensitivity + tooltip)
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r-- | gtk2_ardour/editor_actions.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc index 39587d33e3..ed928067dc 100644 --- a/gtk2_ardour/editor_actions.cc +++ b/gtk2_ardour/editor_actions.cc @@ -478,8 +478,8 @@ Editor::register_actions () for (int i = 1; i <= 9; ++i) { string const a = string_compose (X_("script-action-%1"), i); string const n = string_compose (_("Unset #%1"), i); - act = reg_sens (editor_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 = myactions.register_action (editor_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); } |