Gtk.Entry.prototype.set_max_length
function set_max_length(max:Number):void {
// Gjs wrapper for gtk_entry_set_max_length()
}Sets the maximum allowed length of the contents of the widget. If the current contents are longer than the given length, then they will be truncated to fit.
This is equivalent to:
<informalexample><programlisting> gtk_entry_buffer_set_max_length (gtk_entry_get_buffer (entry), max); </programlisting></informalexample>
- max
the maximum length of the entry, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.