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 with 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

Accessor of the max-length slot of the gtk:entry class. The gtk:entry-max-length function retrieves the maximum allowed length of the text in the text entry, or 0 if there is no maximum. The (setf gtk:entry-max-length) function 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.

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

2024-5-22