GtkLabel and line wrap mode



Hello,

I'm trying to fix a bug in Zenity, however, I'm stucked in the
gtk_label_set_line_wrap and gtk_label_set_line_wrap_mode. If I create a
dialog with a GtkLabel and the text is too big and gtk_label_set_line_wrap
is true, the window size becames bigger than normal.
I notice that the GtkLabel allocate the height according to the amount
necessary to show all text as you can see in the picture[1].

In gtk documentation says to use gtk_widget_set_size_request, however
didn't work.

Is there a way to set the GtkLabel height to be the minimum possible to
show all the text (and wrap it) without the extra size?
​
[1] ​https://docs.google.com/file/d/0Bzp_ysssfuh2YnowM0JuZTFBbHc/edit

Kind regards,
Arx Cruz


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