diff options
author | Carl Hetherington <carl@carlh.net> | 2009-10-19 14:46:15 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-10-19 14:46:15 +0000 |
commit | 7b94110c545415af8437fc6631e7663ebb5c28f3 (patch) | |
tree | 2862ba08b5a30ba632293b399fb6fcd356a14f80 /gtk2_ardour/panner_ui.cc | |
parent | 16e993e51490bd6082869f7ca4783d56e7bd8bcd (diff) |
Add mono switch to mixer strips (mantis 1068)
git-svn-id: svn://localhost/ardour2/branches/3.0@5797 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/panner_ui.cc')
-rw-r--r-- | gtk2_ardour/panner_ui.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index 31403220fe..a643e1b318 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -708,7 +708,7 @@ PannerUI::update_pan_bars (bool only_if_aplay) void PannerUI::update_pan_sensitive () { - bool sensitive = !(_panner->automation_state() & Play); + bool const sensitive = !(_panner->mono()) && !(_panner->automation_state() & Play); switch (_panner->nouts()) { case 0: @@ -890,3 +890,12 @@ PannerUI::_astyle_string (AutoStyle style, bool shrt) return (shrt ? _("Abs") : _("Abs")); } } + +void +PannerUI::set_mono (bool yn) +{ + _panner->set_mono (yn); + update_pan_sensitive (); +} + + |