summaryrefslogtreecommitdiff
path: root/gtk/gtkmultiselection.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-06 10:22:37 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-06 10:24:14 -0400
commitde6327a885d4e981d88bf34a0351ce948b2d5553 (patch)
tree46eb474d1f035643ff2d21faeb35ab8fc2bd506c /gtk/gtkmultiselection.c
parentc3a6e3507023719588555a4bec024765bfd52aeb (diff)
downloadgtk+-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.c6
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