diff options
author | Carl Hetherington <carl@carlh.net> | 2010-11-26 00:29:12 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-11-26 00:29:12 +0000 |
commit | 1539ac1b9661f0c0bb313d8f0d9a72b6dc95aaf1 (patch) | |
tree | 4fb53c3a175339a899f39a7a8598d75aed254f02 /gtk2_ardour/mixer_strip.cc | |
parent | 54cbc45a5a40f4eefd64fa41ad9029f5f8f6a84f (diff) |
Somewhat distasteful hack to fix #3469 (broken keyboard-entry of pan values)
git-svn-id: svn://localhost/ardour2/branches/3.0@8090 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index f5ed9d8618..dc788dd35e 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -1912,7 +1912,16 @@ bool MixerStrip::on_enter_notify_event (GdkEventCrossing*) { Keyboard::magic_widget_grab_focus (); - grab_focus (); + + if (!panners._bar_spinner_active) { + /* This next grab_focus() causes a focus-out event to be sent to, amongst + * other things, panner BarControllers. When they receive it, they abort + * the use of any SpinButton that might be in use to change pan settings. + * Hence we have this horrific hack which stops the grab_focus () call + * happening if a bar spinner is active. + */ + grab_focus (); + } return false; } |