Gtk.Entry.prototype.get_max_length

function get_max_length():Number {
    // Gjs wrapper for gtk_entry_get_max_length()
}

Retrieves the maximum allowed length of the text in entry. See Gtk.set_max_length.

This is equivalent to:

<informalexample><programlisting> gtk_entry_buffer_get_max_length (gtk_entry_get_buffer (entry)); </programlisting></informalexample>

Returns

the maximum allowed number of characters in Gtk.Entry, or 0 if there is no maximum.