diff options
author | Matthias Clasen <mclasen@redhat.com> | 2023-03-18 10:24:06 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2023-03-18 10:25:58 -0400 |
commit | 628157e44ea06cee36843fb4d6d925d3156c19a1 (patch) | |
tree | f5943875c337eeef7239c47f63b22e1dff15338d | |
parent | fb6e432afb34b47b75577f9f9298840de55101c8 (diff) | |
download | gtk+-628157e44ea06cee36843fb4d6d925d3156c19a1.tar.gz |
dropdown: tweak the docs
Add a link to the list widget overview.
-rw-r--r-- | gtk/gtkdropdown.c | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ * </object> * ``` * + * 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, |