Change the iterator to the next item, and return its type.
If there are no more items, gmenu_tree_item_invalid is returned.
iter
The type of the next item that can be retrived from the iterator