Property
GtkLabel:lines
Description [src]
The number of lines to which an ellipsized, wrapping label should display before it gets ellipsized. This both prevents the label from ellipsizing before this many lines are displayed, and limits the height request of the label to this many lines.
Warning
Setting this property has unintuitive and unfortunate consequences for the minimum width of the label. Specifically, if the height of the label is such that it fits a smaller number of lines than the value of this property, the label can not be ellipsized at all, which means it must be wide enough to fit all the text fully.
This property has no effect if the label is not wrapping or ellipsized.
Set this property to -1 if you don’t want to limit the number of lines.
Type:gint
Default value | -1 |
Getter method | gtk_label_get_lines() |
Setter method | gtk_label_set_lines() |