Package: gtk

Accessor gtk:list-item-selectable

Lambda List

gtk:list-item-selectable (object)

Syntax

(gtk:list-item-selectable object) => selectable
(setf (gtk:list-item-selectable object) selectable)

Arguments

object -- a gtk:list-item object
selectable -- a boolean whether the item should be selectable

Details

Accessor of the selectable slot of the gtk:list-item class. The gtk:list-item-selectable function checks if a list item has been set to be selectable. The (setf gtk:list-item-selectable) function sets object to be selectable. If an item is selectable, clicking on the item or using the keyboard will try to select or unselect the item. If this succeeds is up to the model to determine, as it is managing the selected state.

Note that this means that making an item non-selectable has no influence on the selected state at all. A non-selectable item may still be selected.

By default, list items are selectable. When rebinding them to a new item, they will also be reset to be selectable by GTK.
 

See also

2025-4-11