Make knobs size requests dynamic
authorJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 20 Aug 2016 16:12:49 +0000 (18:12 +0200)
committerJulien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr>
Sat, 20 Aug 2016 16:12:49 +0000 (18:12 +0200)
commitfcadcac7e7c6959c0306bfadaf21ded20a2ea5ea
tree637b8672e0037aebd8b82a04f7331cc19d0deec4
parentaed07c49987b497c225944059f4da72ab64a4cff
Make knobs size requests dynamic

At the point of creation, the automate_button size request is wrong
since it has not the correct style yet. Instead of trying ugly hacks to
fix that, connect to the knob's size_request signal and get the button's
requisition only when needed. If the system font changes to one that has
different extents (even if the point size is the same), the UI will thus
correctly update.
gtk2_ardour/generic_pluginui.cc
gtk2_ardour/plugin_ui.h