[gtk/fix-cursor-hiding: 3/7] treelistmodel: Add some docs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-cursor-hiding: 3/7] treelistmodel: Add some docs
- Date: Thu, 25 Mar 2021 19:27:10 +0000 (UTC)
commit a05efd7270e6448c5be772c91210cc896b42575f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Mar 25 13:53:44 2021 -0400
treelistmodel: Add some docs
gtk/gtktreelistmodel.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/gtk/gtktreelistmodel.c b/gtk/gtktreelistmodel.c
index 96fe9b4dff..06d92bff29 100644
--- a/gtk/gtktreelistmodel.c
+++ b/gtk/gtktreelistmodel.c
@@ -29,6 +29,14 @@
* GtkTreeListModel:
*
* `GtkTreeListModel` is a list model that can create child models on demand.
+ *
+ * `GtkTreeListModel` is typically used together with `GtkTreeExpander` to
+ * make list widgets where user can expand rows by clicking on an expander.
+ *
+ * When creating `GtkTreeListModel` with [ctor Gtk TreeListModel new], you
+ * specify a *root* model that contains the initial items for your tree, and
+ * a callback function that we be called whenever the tree model needs to
+ * find the children of a given item.
*/
enum {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]