summaryrefslogtreecommitdiff
path: root/tests/testentrycompletion.c
diff options
context:
space:
mode:
authorNelson Benítez León <nbenitezl@gmail.com>2023-01-22 15:41:00 +0000
committerNelson Benítez León <nbenitezl@gmail.com>2023-01-22 16:34:07 +0000
commitbd206f3b7a409d7fadb5668e2e265ac3f61a0ab8 (patch)
tree917c863719dc337b1bd2dc012496ccb40db16fe1 /tests/testentrycompletion.c
parent8f2ad8f1540fe91769237fcc0986744708747a2b (diff)
downloadgtk+-fix_tooltip_width.tar.gz
Improve window size for long text tooltipsfix_tooltip_width
When a tooltip reaches the hardcoded limit of 50 chars it will wrap to a new line, but keeps the window's width same as if it were just one line. From GtkLabel docs: "For wrapping labels, width-chars is used as the minimum width, if specified, and max-width-chars is used as the natural width." So we detect for this case and set label's width-chars property, so we set the minimum size to a lesser value. Fixes #5521
Diffstat (limited to 'tests/testentrycompletion.c')
0 files changed, 0 insertions, 0 deletions