diff options
author | Robin Gareus <robin@gareus.org> | 2017-02-18 16:14:41 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-02-18 16:14:41 +0100 |
commit | 92e203a19e55c445a7051c7148a659c3507c2770 (patch) | |
tree | 84454c69653da6980850d8a27471cf282523d252 /gtk2_ardour/editor.cc | |
parent | 2d50871034e8c6982ec34dc088c48fd35c76f03d (diff) |
Consolidate ActionChanged callbacks, add tooltips
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 512e9ef58e..bb769e30ef 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -112,7 +112,6 @@ #include "gui_object.h" #include "gui_thread.h" #include "keyboard.h" -#include "keyeditor.h" #include "luainstance.h" #include "marker.h" #include "midi_region_view.h" @@ -869,8 +868,6 @@ Editor::Editor () setup_fade_images (); - LuaInstance::instance()->ActionChanged.connect (sigc::mem_fun (*this, &Editor::set_script_action_name)); - instant_save (); } @@ -5877,24 +5874,6 @@ Editor::trigger_script (int i) } void -Editor::set_script_action_name (int i, const std::string& n) -{ - string const a = string_compose (X_("script-action-%1"), i + 1); - Glib::RefPtr<Action> act = ActionManager::get_action(X_("Editor"), a.c_str()); - assert (act); - 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 (); -} - -void Editor::show_editor_list (bool yn) { if (yn) { |