Re: Label and wrap text

Le dimanche 19 juin 2005 �2:23 +0200, Preben Randhol a �it :
> Hello
> I was thinking to use a label to present some text for a simple help in
> my program. The problem is that if I use the "Wrap Text" and Fill
> options then the label doesn't fill the width of the window.
> See this mockup:
> The pixmap is wider as you can see and it would be nice if the text
> could match the width.
> Is there anyway to get this working? Or is there a new (2.2->) widget which is
> better to use. Note GTK widgets only.

I did not try it, but a call to gtk_label_set_justify should solve your
gtk_label_set_justify (label, GTK_JUSTIFY_FILL);

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