summaryrefslogtreecommitdiff
path: root/gtk/gtkselectionmodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-06 10:36:09 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-06 10:36:57 -0400
commitfd7f19c93442a9e0b5a299bb4b403c0e87906f86 (patch)
tree6676de9530212c9048e188619f4d60f565c5c1fd /gtk/gtkselectionmodel.c
parent8090e213de9d0924b3bf494d4af3ba51e081847a (diff)
downloadgtk+-fd7f19c93442a9e0b5a299bb4b403c0e87906f86.tar.gz
selectionmodel: Document the callback apis
Diffstat (limited to 'gtk/gtkselectionmodel.c')
-rw-r--r--gtk/gtkselectionmodel.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkselectionmodel.c b/gtk/gtkselectionmodel.c
index dfbf167f9a..1bbf277d61 100644
--- a/gtk/gtkselectionmodel.c
+++ b/gtk/gtkselectionmodel.c
@@ -342,6 +342,15 @@ gtk_selection_model_unselect_all (GtkSelectionModel *model)
return iface->unselect_all (model);
}
+/**
+ * gtk_selection_model_select_callback:
+ * @model: a #GtkSelectionModel
+ * @callback: a #GtkSelectionCallback to determine items to select
+ * @data: data to pass to @callback
+ *
+ * Requests to select all items for which @callback returns
+ * @selected as TRUE.
+ */
gboolean
gtk_selection_model_select_callback (GtkSelectionModel *model,
GtkSelectionCallback callback,
@@ -352,6 +361,15 @@ gtk_selection_model_select_callback (GtkSelectionModel *model,
return GTK_SELECTION_MODEL_GET_IFACE (model)->select_callback (model, callback, data);
}
+/**
+ * gtk_selection_model_unselect_callback:
+ * @model: a #GtkSelectionModel
+ * @callback: a #GtkSelectionCallback to determine items to select
+ * @data: data to pass to @callback
+ *
+ * Requests to unselect all items for which @callback returns
+ * @selected as TRUE.
+ */
gboolean
gtk_selection_model_unselect_callback (GtkSelectionModel *model,
GtkSelectionCallback callback,