diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-25 12:56:21 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-25 12:56:21 +0200 |
commit | 5e0f0fc9f2015e2c169712cb61ee7d8546fe2d36 (patch) | |
tree | a3e464f7eb5527641023b6fdb8055a1b48df91b0 /gtk2_ardour/editor.cc | |
parent | f4f9963cdd51438ced217f6c9cf6769e87a7b5b7 (diff) |
lua action details (button sensitivity, text ellipsis)
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 959cdd4e5c..b267eae670 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -5747,9 +5747,11 @@ Editor::set_script_action_name (int i, const std::string& n) if (n.empty ()) { act->set_label (string_compose (_("Unset #%1"), i + 1)); act->set_tooltip (_("(no action bound")); + act->set_sensitive (false); } else { act->set_label (n); act->set_tooltip (n); + act->set_sensitive (true); } KeyEditor::UpdateBindings (); } |