Node.childIndex

int childIndex(void * data = null)

Gets the position of the first child of a #GNode which contains the given data.

Parameters

datathe data to find

Returns

the index of the child of node which contains

data, or -1 if the data is not found