GtkEntry::get_max_length

int get_max_length();

Retrieves the maximum allowed length of the text in entry. A value of 0 indicates no limit.

See also: set_max_length()