diff options
| author | Nelson Benítez León <nbenitezl@gmail.com> | 2023-01-22 15:41:00 +0000 |
|---|---|---|
| committer | Nelson Benítez León <nbenitezl@gmail.com> | 2023-01-22 16:34:07 +0000 |
| commit | bd206f3b7a409d7fadb5668e2e265ac3f61a0ab8 (patch) | |
| tree | 917c863719dc337b1bd2dc012496ccb40db16fe1 /examples/application7/exampleappprefs.h | |
| parent | 8f2ad8f1540fe91769237fcc0986744708747a2b (diff) | |
| download | gtk+-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 'examples/application7/exampleappprefs.h')
0 files changed, 0 insertions, 0 deletions
