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 164461 - Wrapped label wastes space
Wrapped label wastes space
Status: RESOLVED DUPLICATE of bug 101968
Product: gtk+
Classification: Platform
Component: Widget: Other
2.6.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-01-18 12:36 UTC by Mathias Hasselmann (IRC: tbf)
Modified: 2005-01-18 15:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
That's what it currently looks like (32.36 KB, image/png)
2005-01-18 12:37 UTC, Mathias Hasselmann (IRC: tbf)
Details
Some demonstration of the bug. (1.58 KB, text/x-csrc)
2005-01-18 12:42 UTC, Mathias Hasselmann (IRC: tbf)
Details

Description Mathias Hasselmann (IRC: tbf) 2005-01-18 12:36:13 UTC
Please describe the problem:
If some GtkLabel is added to some very wide container, and if
gtk_label_set_line_wrap is activated for that label, GtkLabel doesn't utilize
all the space available.

Steps to reproduce:
1. create a new glade-project
2. create some window
3. put some label into that window (as the only child)
4. activate line-wrapping for that label
5. assign some long text to that widget
6. maximize the window


Actual results:
The label utilizes just a small amount of the window width to render its text.

Expected results:
The label utilizes the entire window width to render its text.

Does this happen every time?
Yes, as soon as the window is big enough.

Other information:
Comment 1 Mathias Hasselmann (IRC: tbf) 2005-01-18 12:37:34 UTC
Created attachment 36168 [details]
That's what it currently looks like
Comment 2 Mathias Hasselmann (IRC: tbf) 2005-01-18 12:42:45 UTC
Created attachment 36169 [details]
Some demonstration of the bug.

compile with:
make CFLAGS="$(pkg-config gtk+-2.0 --cflags --libs)" gtklabel
Comment 3 Matthias Clasen 2005-01-18 13:55:53 UTC
The attachment seems broken.
Comment 4 Owen Taylor 2005-01-18 15:08:20 UTC
Note that gtk_widget_set_size_request() with an explicit width will be
honored.


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