Package: gtk

Accessor gtk:entry-width-chars

Lambda List

gtk:entry-width-chars (object)

Syntax

(gtk:entry-width-chars object) => nchars
(setf (gtk:entry-width-chars object) nchars)

Arguments

object -- a gtk:entry widget
nchars -- an integer for the width in chars

Details

Accessor of the width-chars slot of the gtk:entry class. The gtk:entry-width-chars function returns the number of chars to request space for, or negative if unset. The (setf gtk:entry-width-chars) function changes the size request of the entry to be about the right size for nchars characters.

Note that it changes the size request, the size can still be affected by how you pack the widget into containers. If the nchars argument is -1, the size reverts to the default entry size.
 

See also

2025-07-09