get_items


Description:

public SelectionModel get_items ()

Gets a list model with this's items.

This can be used to keep an up-to-date view.

The model implements [iface@Gtk.SectionModel] and creates sections corresponding to the sidebar's sections.

The model also implements [iface@Gtk.SelectionModel] and can be used to track and change the selection.

To only track sections, use [property@Sidebar:sections] instead.

Parameters:

this

a sidebar

Returns:

a model containing the items