From 4d74b5e42074300c77d48e0c327218387f0ec361 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 14 May 2016 15:06:24 +0200 Subject: action script GUI details (sensitivity + tooltip) --- gtk2_ardour/editor_actions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/editor_actions.cc') 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); } -- cgit v1.2.3