mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
dropdown: tweak the docs
Add a link to the list widget overview.
This commit is contained in:
parent
fb6e432afb
commit
628157e44e
@ -57,7 +57,12 @@
|
|||||||
*
|
*
|
||||||
* The options are given to `GtkDropDown` in the form of `GListModel`
|
* The options are given to `GtkDropDown` in the form of `GListModel`
|
||||||
* and how the individual options are represented is determined by
|
* and how the individual options are represented is determined by
|
||||||
* a [class@Gtk.ListItemFactory]. The default factory displays simple strings.
|
* a [class@Gtk.ListItemFactory]. The default factory displays simple strings,
|
||||||
|
* and adds a checkmark to the selected item in the popup.
|
||||||
|
*
|
||||||
|
* To set your own factory, use [method@Gtk.DropDown.set_factory]. It is
|
||||||
|
* possible to use a separate factory for the items in the popup, with
|
||||||
|
* [method@Gtk.DropDown.set_list_factory].
|
||||||
*
|
*
|
||||||
* `GtkDropDown` knows how to obtain strings from the items in a
|
* `GtkDropDown` knows how to obtain strings from the items in a
|
||||||
* [class@Gtk.StringList]; for other models, you have to provide an expression
|
* [class@Gtk.StringList]; for other models, you have to provide an expression
|
||||||
@ -82,6 +87,9 @@
|
|||||||
* </object>
|
* </object>
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
|
* To learn more about the list widget framework, see the
|
||||||
|
* [overview](section-list-widget.html).
|
||||||
|
*
|
||||||
* # CSS nodes
|
* # CSS nodes
|
||||||
*
|
*
|
||||||
* `GtkDropDown` has a single CSS node with name dropdown,
|
* `GtkDropDown` has a single CSS node with name dropdown,
|
||||||
|
Loading…
Reference in New Issue
Block a user