Method

GtkTextget_max_length

Declaration [src]

int
gtk_text_get_max_length (
  GtkText* self
)

Description [src]

Retrieves the maximum allowed length of the contents.

See gtk_text_set_max_length().

This is equivalent to getting selfs GtkEntryBuffer and calling gtk_entry_buffer_get_max_length() on it.

Gets propertyGtk.Text:max-length

Return value

Type: int

The maximum allowed number of characters, or 0 if there is no limit.