diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-08 14:51:18 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-03-08 14:51:18 +0000 |
commit | 82c794db70b4581c289f7fa72fe4753756016eca (patch) | |
tree | 30c374edc86559d63cf9bf4954dc51ca9265784c /gtk2_ardour/panner_ui.cc | |
parent | 4f84a6cd1d8ce21a027aa20dafee73d3a7f10e0e (diff) |
reinstate context menu on stereo panner
git-svn-id: svn://localhost/ardour2/branches/3.0@9106 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, 7 insertions, 6 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index 3ec24251ec..c783283d99 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -272,16 +272,17 @@ PannerUI::setup_pan () ac = pannable->pan_azimuth_control; _stereo_panner->StartPositionGesture.connect (sigc::bind (sigc::mem_fun (*this, &PannerUI::start_touch), - boost::weak_ptr<AutomationControl> (ac))); + boost::weak_ptr<AutomationControl> (ac))); _stereo_panner->StopPositionGesture.connect (sigc::bind (sigc::mem_fun (*this, &PannerUI::stop_touch), - boost::weak_ptr<AutomationControl>(ac))); - + boost::weak_ptr<AutomationControl>(ac))); + ac = pannable->pan_width_control; _stereo_panner->StartWidthGesture.connect (sigc::bind (sigc::mem_fun (*this, &PannerUI::start_touch), - boost::weak_ptr<AutomationControl> (ac))); + boost::weak_ptr<AutomationControl> (ac))); _stereo_panner->StopWidthGesture.connect (sigc::bind (sigc::mem_fun (*this, &PannerUI::stop_touch), - boost::weak_ptr<AutomationControl>(ac))); - + boost::weak_ptr<AutomationControl>(ac))); + _stereo_panner->signal_button_release_event().connect (sigc::mem_fun(*this, &PannerUI::pan_button_event)); + } else if (nins == 1) { /* 1-in/2out */ |