After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 152192 - word wrapping in labels broken (greeter ui)
word wrapping in labels broken (greeter ui)
Status: RESOLVED DUPLICATE of bug 331706
Product: gdm
Classification: Core
Component: general
2.4.4.x
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2004-09-08 19:43 UTC by Marek Beyer
Modified: 2006-03-11 01:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marek Beyer 2004-09-08 19:43:19 UTC
There are two possibilities to set the width of a label using max-width and 
max-screen-percent-width in <pos> forcing word-wrapping. None of those two work 
(neither in 2.4.4.7-r1 nor in 2.6.0.4-r1) like described in http://www.jirka.
org/gdm-documentation/x1259.html

I searched through the sources of greeter and found item->data.text.
real_max_width as the place where max width is read for wrapping. But the only 
place it is set to an new value is when the label is located in a 
vertical-oriented box. This is a good workaround for the problem (if you keep in 
mind that xpadding and ypadding of the box are ignored!?! :) Internally also 
max_width and max_percent_width (preset is 90%) are set but I haven't found a 
place where real_max_width is calculated from these values (I did not a deep 
search).

Are there plans to (re)activate the functions? Or will there be something else 
in future releases? Another problem is, that in user messages and translations 
there are hard-coded newlines ("\n") - looks sometimes strange. Also the height 
of a label is calculated as for one line of text causing the wrong height after 
wrapped text is displayed (but you can manually add an empty label to reserve 
the space).

All not real problems but quite confusing when making a theme.
Comment 1 Brian Cameron 2005-04-01 21:48:06 UTC
If you want to patch the code to make it smarter, I'll accept the patch.
Comment 2 Marek Beyer 2005-04-03 17:40:27 UTC
gonna try it but not immediately :)
Comment 3 Brian Cameron 2006-03-11 01:20:32 UTC

*** This bug has been marked as a duplicate of 331706 ***