Property

GtkLabel:ellipsize

since: 2.6

Declaration

property ellipsize: Pango.EllipsizeMode [ read, write ]

Description [src]

The preferred place to ellipsize the string, if the label does not have enough room to display the entire string, specified as a PangoEllipsizeMode.

Note that setting this property to a value other than PANGO_ELLIPSIZE_NONE has the side-effect that the label requests only enough space to display the ellipsis “…”. In particular, this means that ellipsizing labels do not work well in notebook tabs, unless the GtkNotebook tab-expand child property is set to TRUE. Other ways to set a label’s width are gtk_widget_set_size_request() and gtk_label_set_width_chars().

Type:PangoEllipsizeMode

Available since: 2.6

Default valuePANGO_ELLIPSIZE_NONE
Getter methodgtk_label_get_ellipsize()
Setter methodgtk_label_set_ellipsize()

Flags

Readableyes
Writableyes
Constructno
Construct onlyno