get_selected_item


Description:

public unowned SidebarItem? get_selected_item ()

Gets the currently selected item.

This is a convenience method, equivalent to calling [method@Sidebar.get_item] with [property@Sidebar:selected] provided as the index.

To change selection, use [method@Sidebar.set_selected].

Parameters:

this

a sidebar

Returns:

the selected item