GNOME Bugzilla – Bug 164461
Wrapped label wastes space
Last modified: 2005-01-18 15:08:20 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:
Created attachment 36168 [details] That's what it currently looks like
Created attachment 36169 [details] Some demonstration of the bug. compile with: make CFLAGS="$(pkg-config gtk+-2.0 --cflags --libs)" gtklabel
The attachment seems broken.
Note that gtk_widget_set_size_request() with an explicit width will be honored. *** This bug has been marked as a duplicate of 101968 ***