Package: gtk

Accessor gtk:entry-buffer-max-length

Lambda List

gtk:entry-buffer-max-length (object)

Syntax

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

Arguments

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

Details

Accessor of the max-length slot of the gtk:entry-buffer class. The gtk:entry-buffer-max-length function returns the maximum allowed number of characters in a entry buffer, or 0 if there is no maximum. The (setf gtk:entry-buffer-max-length) function sets the maximum allowed length. If the current contents are longer than the given length, then they will be truncated to fit.
 

See also

2025-07-08