Re: [gtk-list] Re: Please help with blocked X-Server



Roberto wrote:

> By the way, do you know if there is a problem in the line wrapping of
> GtkLabels? It does not seem to work, even in testgtk. It produces a huge
> window which does not fit on screen.

What makes you think it doesn't work in GTK+?
It looks to me like it does.

It looks like all you have to do is:

      gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);

And possibly:

      gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_FILL);

if you want spaces to be inserted so the right edge of the text is straight.

And use "\n" to start new paragraphs.

Post your code if it still doesn't work.

Damon



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