diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-06 10:22:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-06 10:24:14 -0400 |
commit | de6327a885d4e981d88bf34a0351ce948b2d5553 (patch) | |
tree | 46eb474d1f035643ff2d21faeb35ab8fc2bd506c /gtk/gtkmultiselection.c | |
parent | c3a6e3507023719588555a4bec024765bfd52aeb (diff) | |
download | gtk+-de6327a885d4e981d88bf34a0351ce948b2d5553.tar.gz |
multiselection: Clarify docs
Make it clear that GtkMultiSelection is not persistent
across resorting.
Diffstat (limited to 'gtk/gtkmultiselection.c')
-rw-r--r-- | gtk/gtkmultiselection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkmultiselection.c b/gtk/gtkmultiselection.c index a97718e704..11caa78fc1 100644 --- a/gtk/gtkmultiselection.c +++ b/gtk/gtkmultiselection.c @@ -33,6 +33,12 @@ * * GtkMultiSelection is an implementation of the #GtkSelectionModel interface * that allows selecting multiple elements. + * + * Note that due to the way the selection is stored, newly added items are + * always unselected, even if they were just removed from the model, and were + * selected before. In particular this means that changing the sort order of + * an underlying sort model will clear the selection. In other words, the + * selection is *not persistent*. */ struct _GtkMultiSelection |