diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-02 14:46:22 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-06-02 14:46:35 -0400 |
commit | 301000c94e4b0e11ef4f9aab24c14f3a45a1eb7c (patch) | |
tree | 118c5e232889e271d9312207dc50c3a315670189 /gtk2_ardour/processor_box.cc | |
parent | a0fad1664826152d81e3a3b9c2556a1817a04343 (diff) |
make new action to bind BackSpace to in processors box
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index b4634c6b08..a91b3aead4 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -109,6 +109,7 @@ RefPtr<Action> ProcessorBox::cut_action; RefPtr<Action> ProcessorBox::copy_action; RefPtr<Action> ProcessorBox::rename_action; RefPtr<Action> ProcessorBox::delete_action; +RefPtr<Action> ProcessorBox::backspace_action; RefPtr<Action> ProcessorBox::manage_pins_action; RefPtr<Action> ProcessorBox::edit_action; RefPtr<Action> ProcessorBox::edit_generic_action; @@ -2122,6 +2123,7 @@ ProcessorBox::show_processor_menu (int arg) cut_action->set_sensitive (sensitive && can_cut ()); copy_action->set_sensitive (sensitive); delete_action->set_sensitive (sensitive || stub_processor_selected ()); + backspace_action->set_sensitive (sensitive || stub_processor_selected ()); edit_action->set_sensitive (one_processor_can_be_edited ()); edit_generic_action->set_sensitive (one_processor_can_be_edited ()); @@ -3638,10 +3640,13 @@ ProcessorBox::register_actions () sigc::ptr_fun (ProcessorBox::rb_copy)); delete_action = myactions.register_action (processor_box_actions, X_("delete"), _("Delete"), sigc::ptr_fun (ProcessorBox::rb_delete)); + backspace_action = myactions.register_action (processor_box_actions, X_("backspace"), _("Delete"), + sigc::ptr_fun (ProcessorBox::rb_delete)); ActionManager::plugin_selection_sensitive_actions.push_back (cut_action); ActionManager::plugin_selection_sensitive_actions.push_back (copy_action); ActionManager::plugin_selection_sensitive_actions.push_back (delete_action); + ActionManager::plugin_selection_sensitive_actions.push_back (backspace_action); paste_action = myactions.register_action (processor_box_actions, X_("paste"), _("Paste"), sigc::ptr_fun (ProcessorBox::rb_paste)); |