Method

GtkEntryget_max_length

Declaration [src]

gint
gtk_entry_get_max_length (
  GtkEntry* entry
)

Description [src]

Retrieves the maximum allowed length of the text in entry. See gtk_entry_set_max_length().

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

Gets propertyGtk.Entry:max-length

Return value

Type: gint

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