Gtk.EntryBuffer.prototype.set_max_length
function set_max_length(max_length:Number):void {
// Gjs wrapper for gtk_entry_buffer_set_max_length()
}Sets the maximum allowed length of the contents of the buffer. If the current contents are longer than the given length, then they will be truncated to fit.
Since 2.18
- max_length
the maximum length of the entry buffer, or 0 for no maximum. (other than the maximum length of entries.) The value passed in will be clamped to the range 0-65536.