Ticket #2841: adjust i18n label sizes in learn key dialog.
commit368e250102af9b111e25f8e0dbba2db4fb0660cb
authorAndrew Borodin <aborodin@vmail.ru>
Sat, 1 Dec 2012 13:18:10 +0000 (1 17:18 +0400)
committerAndrew Borodin <aborodin@vmail.ru>
Thu, 20 Dec 2012 11:35:35 +0000 (20 15:35 +0400)
tree698ba637ecd56829badc22019eae878e5784e4bf
parentf25feaab1f2b3050610ec170249fb442e8149b50
Ticket #2841: adjust i18n label sizes in learn key dialog.

Learn keys dialogue shows "smaller buttons" when localized key names
include special chars (as the "á" in "Avanzar página" for es_ES locale).
"%Ns" formats for g_snprintf are not reliable for multibyte encodings.
For larger buttons (> 16 characters), padding size must be zero.

Thanks David Martin for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/learn.c