diff options
author | Carl Hetherington <carl@carlh.net> | 2012-06-01 00:41:28 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-06-01 00:41:28 +0000 |
commit | e39a8fc9681a35b95e6d0f9b4e1a9b31d932f262 (patch) | |
tree | fd79bbefd926c6d5080ed25b3a9b9d462af1b6c9 /gtk2_ardour/option_editor.cc | |
parent | 6624f9be372ffd664f762e3bcba91005de5659b3 (diff) |
Make faders visually desensitised when their tracks are in automation-play.
git-svn-id: svn://localhost/ardour2/branches/3.0@12518 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 3e1fa73ca3..ca8fa0a2cf 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -176,7 +176,13 @@ FaderOption::FaderOption (string const & i, string const & n, sigc::slot<gain_t> throw failed_constructor (); } + _pix_desensitised = ::get_icon (X_("fader_belt_h_desensitised")); + if (_pix_desensitised == 0) { + throw failed_constructor (); + } + _db_slider = manage (new HSliderController (_pix, + _pix_desensitised, &_db_adjustment, 115, false)); |