ListBoxRow.getIndex

int getIndex()

Gets the current index of the row in its [gtk.list_box.ListBox] container.

Returns

the index of the row, or -1 if the row is not in a listbox