diff options
author | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-25 19:00:05 +0200 |
---|---|---|
committer | Julien "_FrnchFrgg_" RIVAUD <frnchfrgg@free.fr> | 2016-08-25 19:23:49 +0200 |
commit | 3921e33c2a6c5ae5d745a8313ad9981b55a5aa5c (patch) | |
tree | 66536e5376ea822d915af99c1b55d1e528914f04 /gtk2_ardour/generic_pluginui.cc | |
parent | aee5d24cfa98431b8e4725d0e3dd5a017db2b5b0 (diff) |
Avoid 1px size changes when sizing_text() is used
When requesting a size for ArdourButton, the width and height of the
button could be increased by one to ensure the center of the text would
lie exactly at the center of the button.
I initially thought that it was a good idea even when the text used for
sizing was frozen, but the main (and only?) use-case for that is to
actually freeze the size of the button regardless of the actual
displayed text, so jittering by one pixel is not welcome.
Only do the centering tweak if there is no sizing text.
Diffstat (limited to 'gtk2_ardour/generic_pluginui.cc')
0 files changed, 0 insertions, 0 deletions