Package: gtk

Accessor gtk:single-selection-selected

Lambda List

gtk:single-selection-selected (object)

Syntax

(gtk:single-selection-selected object) => position
(setf (gtk:single-selection-selected object) position)

Arguments

object -- a gtk:single-selection object
position -- an unsigned integer with the item to select or the gtk:+invalid-list-position+ value

Details

Accessor of the selected slot of the gtk:single-selection class. The gtk:single-selection-selected function gets the position of the selected item. If no item is selected, the gtk:+invalid-list-position+ value is returned. The (setf gtk:single-selection-selected) function selects the item at the given position.

If the list does not have an item at position or the gtk:+invalid-list-position+ value is given, the behavior depends on the value of the autoselect property. If it is set, no change will occur and the old item will stay selected. If it is unset, the selection will be unset and no item will be selected.
 

See also

2023-11-26