summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_actions.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2017-03-04 15:20:56 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-03-04 15:26:00 +1000
commitddb4b8a7c3c4d8efbcf447c4f165f33d8aa0e430 (patch)
treefaa3a02909de48016b9eba1ea777a7f86940d645 /gtk2_ardour/editor_actions.cc
parente8b5b4fcf3e9b755c953a6e25a343640d64fe3d9 (diff)
Add reset region gain action for selected regions
Diffstat (limited to 'gtk2_ardour/editor_actions.cc')
-rw-r--r--gtk2_ardour/editor_actions.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_actions.cc b/gtk2_ardour/editor_actions.cc
index aa82ff39b3..67786e01db 100644
--- a/gtk2_ardour/editor_actions.cc
+++ b/gtk2_ardour/editor_actions.cc
@@ -1799,6 +1799,9 @@ Editor::register_region_actions ()
/* Cut selected region gain */
register_region_action (_region_actions, RegionActionTarget (SelectedRegions|EnteredRegions), "cut-region-gain", _("Cut Gain"), sigc::bind (sigc::mem_fun(*this, &Editor::adjust_region_gain), false));
+ /* Reset selected region gain */
+ register_region_action (_region_actions, RegionActionTarget (SelectedRegions|EnteredRegions), "reset-region-gain", _("Reset Gain"), sigc::mem_fun(*this, &Editor::reset_region_gain));
+
/* Open the pitch shift dialogue for any selected audio regions */
register_region_action (_region_actions, RegionActionTarget (SelectedRegions|EnteredRegions), "pitch-shift-region", _("Pitch Shift..."), sigc::mem_fun (*this, &Editor::pitch_shift_region));