Fix special handling of 'zoom vertical' scroll wheel modifier key.
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Tue, 23 Jul 2013 15:15:23 +0000 (16:15 +0100)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 8 Aug 2013 19:24:15 +0000 (15:24 -0400)
commit1da655c2eb41816f6bf13134fc950dee9dd99aaa
tree2e124827dd7790650ecad7095e66c48335fe54a1
parentc222acecaa38b1ef56754808f216dc1abecbd416
Fix special handling of 'zoom vertical' scroll wheel modifier key.

gtkmm2ext/keyboard.cc has a special case to emit a signal on the key-up of
the modifier key used to adjust track heights in conjunction with the
scroll wheel, so that the same track continues to be resized even when
it's shrunk to no longer be under the mouse cursor. However, this code
assumed that the modifier key for this was <Shift>.

Fix it to use the event->state bit corresponding to
ScrollZoomVerticalModifier instead, and rename the relevant functions to
clarify that it's the 'zoom vertical' modifier key they're dealing with.

Partially fixes #5610.
gtk2_ardour/editor.cc
gtk2_ardour/editor.h
libs/gtkmm2ext/gtkmm2ext/keyboard.h
libs/gtkmm2ext/keyboard.cc