Align the currently selected automation state on dropdown
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 17 Aug 2016 19:14:47 +0000 (21:14 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Wed, 17 Aug 2016 21:56:31 +0000 (23:56 +0200)
commit606ffe6a358cc0ad84253e315e5bd4dea20cce00
tree0cd9ed37d5a0143790e0367e5d0a197c300dff92
parent97020209296453f02590cce82b6160ce122aad08
Align the currently selected automation state on dropdown

By passing the current text of the automation button we can make the
dropdown menu align with the current mode. This will only work for
full-size automation buttons, not when use-knob is true, but in that
case it feels wrong to popup on top of the button anyway.

Also make the menu show on mouse down like a real dropdown.
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/plugin_ui.h