Package: gtk

Accessor gtk:entry-max-length

Lambda List

gtk:entry-max-length (object)

Syntax

(gtk:entry-max-length object) => max
(setf (gtk:entry-max-length object) max)

Arguments

object -- a gtk:entry widget
max -- an integer for the maximum length of the text entry, or 0 for no maximum, the value passed in will be clamped to the range [0, 65536]

Details

The accessor for the max-length slot of the gtk:entry class gets or sets the maximum allowed length of the text in the text entry. If the current contents are longer than the given length, then they will be truncated to fit.

Notes

This function is equivalent to
(gtk:entry-buffer-max-length (gtk:entry-buffer object))    
and
(setf (gtk:entry-buffer-max-length (gtk:entry-buffer object)) max)    
 

See also

2025-08-11