Package: gtk
Class gtk:single-selection
Superclassesgtk:selection-model, gio:list-model, gtk:section-model, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct Slotsautoselect The autoselect property of type :boolean (Read / Write) Whether the selection will always select an item. Default value: true can-unselect The can-unselect property of type :boolean (Read / Write) Whether unselecting the selected item is allowed. Default value: false n-items The n-items property of type :uint (Read / Write) The number of items. Since 4.8 Default value: 0 selected The selected property of type :uint (Read / Write) The position of the selected item. Default value: gtk:+invalid-list-position+ Details The gtk:single-selection class is an implementation of the gtk:selection-model interface that allows selecting a single
element.
It is the default selection method used by list widgets in GTK. Note that the selection is *persistent* -- if the selected item is removed and re-added in the same "items-changed" signal emission, it stays selected. In particular, this means that changing the sort order of an underlying sort model will preserve the selection. | Returned byInherited Slot Access FunctionsSee also |
2025-05-04