diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-04-30 15:04:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-04-30 15:04:16 +0000 |
commit | 8a7e3f17f4b78bb0383e47a7ee2e63fb964c04e7 (patch) | |
tree | ed6d6899597c183d948b08415859e52b2ecf6aa7 /gtk2_ardour/panner_ui.cc | |
parent | 075f5170ef1995852d823d6d2e2d43fdee99654d (diff) |
implement panner reset functionality (missing since 0.99?) ported from 2.X
git-svn-id: svn://localhost/ardour2/branches/3.0@5015 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r-- | gtk2_ardour/panner_ui.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index 636035abd3..2df79d2c39 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -497,9 +497,9 @@ PannerUI::build_pan_menu (uint32_t which) bypass_menu_item->set_active (_io->panner().bypassed()); bypass_menu_item->signal_toggled().connect (mem_fun(*this, &PannerUI::pan_bypass_toggle)); - items.push_back (MenuElem (_("Reset"), mem_fun(*this, &PannerUI::pan_reset))); + items.push_back (MenuElem (_("Reset"), bind (mem_fun (*this, &PannerUI::pan_reset), which))); items.push_back (SeparatorElem()); - items.push_back (MenuElem (_("Reset all"))); + items.push_back (MenuElem (_("Reset all"), mem_fun (*this, &PannerUI::pan_reset_all))); } void @@ -518,8 +518,15 @@ PannerUI::pan_bypass_toggle () } void -PannerUI::pan_reset () +PannerUI::pan_reset (uint32_t which) { + _io->panner().reset_streampanner (which); +} + +void +PannerUI::pan_reset_all () +{ + _io->panner().reset_to_default (); } void |