treeexpander: Add docs note about setting GtkListItem::focusable

This commit is contained in:
Benjamin Otte 2023-03-26 21:06:09 +02:00
parent 87059d53a6
commit 5f1b8a31c2

View File

@ -45,6 +45,11 @@
* "listitem.toggle-expand" actions are provided to allow adding custom
* UI for managing expanded state.
*
* It is important to mention that you want to set the
* [property@Gtk.ListItem:focusable] property to FALSE when using this
* widget, as you want the keyboard focus to be in the treexpander, and not
* inside the list to make use of the keybindings.
*
* The `GtkTreeListModel` must be set to not be passthrough. Then it
* will provide [class@Gtk.TreeListRow] items which can be set via
* [method@Gtk.TreeExpander.set_list_row] on the expander.