How to get a GtkLabel to fill all the available space.



Greetings.


Under Gnome 2.10, using glade-2, I created a simple window with GtkHBox. The GtkHBox as 3 sections, the first a small image, the second a label and the tird a small button.

The GtkLabel is the widget that should take all the rest of available space. When clicking on it, I see that it seams to be taking it, as the border shown with glade-2 confirms it. Yet, the text I have entered, multi-line and very long, seams to wrap much before the right border of the widget. I tried all sort of stuff, but could not have the text go as far as the right border. There seams to be an imaginary boundary in the middle of the label where the text wraps.

I noticed that if I increase the width of the widget in pixels, in the Properties/Common/width entry, I can sorta fix this. But that means I have to enter a specific width. I do not want this. I want for the label to expand and wrap as the user changes the size of the window.

This must be a common problem. Probably there is an easy solution I simply am not to figure out.


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.
http://www.deragon.biz        Open source (contribution):
mailto://hans deragon biz     http://autopoweroff.deragon.biz



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]