From: Matthias Clasen Date: Sat, 18 Mar 2023 14:24:06 +0000 (-0400) Subject: dropdown: tweak the docs X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~529^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=628157e44ea06cee36843fb4d6d925d3156c19a1;p=gtk4.git dropdown: tweak the docs Add a link to the list widget overview. --- diff --git a/gtk/gtkdropdown.c b/gtk/gtkdropdown.c index 4aaea3ae4a..3fcfeb71f4 100644 --- a/gtk/gtkdropdown.c +++ b/gtk/gtkdropdown.c @@ -57,7 +57,12 @@ * * The options are given to `GtkDropDown` in the form of `GListModel` * 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 * [class@Gtk.StringList]; for other models, you have to provide an expression @@ -82,6 +87,9 @@ * * ``` * + * To learn more about the list widget framework, see the + * [overview](section-list-widget.html). + * * # CSS nodes * * `GtkDropDown` has a single CSS node with name dropdown,