Gets the position of the given element in the #GSList (starting from 0).
the position of the element in the #GSList, or -1 if the element is not found
a #GSList
an element in the #GSList