Property

AdwSidebar:selected

unstable since: 1.9

Declaration

property selected: guint [ read, write ]

Description [src]

The index of the currently selected item.

If set to GTK_INVALID_LIST_POSITION, no item is selected.

If AdwSidebar:mode is set to ADW_SIDEBAR_MODE_PAGE, the selection is invisible, but still tracked, indicating which item will be selected once the mode is changed to ADW_SIDEBAR_MODE_SIDEBAR.

See also: AdwSidebar:selected-item.

Type:guint

Available since: 1.9

Default value4294967295
Getter methodadw_sidebar_get_selected()
Setter methodadw_sidebar_set_selected()

Flags

Readableyes
Writableyes
Constructno
Construct onlyno