Package: gtk

Accessor gtk:text-max-length

Lambda List

gtk:text-max-length (object)

Syntax

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

Arguments

object -- a gtk:text widget
length -- an integer for the maximum length of the text entry or 0 if there is no maximum

Details

The accessor for the max-length slot of the gtk:text class gets or sets the maximum allowed length of the text in the text entry. This is equivalent to getting the gtk:entry-buffer object for the text entry and calling the gtk:entry-buffer-max-length function on it.

If the current contents are longer than the given length, then they will be truncated to fit. This is equivalent to getting the gtk:entry-buffer object for the text entry and calling the (setf gtk:entry-buffer-max-length) function on it.
 

See also

2025-08-11