check negativ index in list functions

change return type of ui_list_getselection from UiListSelection to int, add ui_list_get_selection for returning UiListSelection

(0) -1000 -300 -100 -30 -10 -2 +2 tip

mercurial