ListBoxRow.getIndex

int getIndex()

Gets the current index of the row in its #GtkListBox container.

Returns

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