singleselection: Clarify docs

Mention persistence and sorting.
This commit is contained in:
Matthias Clasen 2020-06-06 11:53:33 -04:00
parent 3e6e247e56
commit e72c243aca

View File

@ -33,6 +33,11 @@
* GtkSingleSelection is an implementation of the #GtkSelectionModel 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 emission, it stays selected. In
* particular, this means that changing the sort order of an underlying sort
* model will preserve the selection.
*/
struct _GtkSingleSelection
{