diff -r 34b07b18b3e1 -r 670b2c03413f ui/common/wrapper.c --- a/ui/common/wrapper.c Sat Oct 18 10:17:59 2025 +0200 +++ b/ui/common/wrapper.c Sat Oct 18 12:23:52 2025 +0200 @@ -134,6 +134,17 @@ return ui_list_count(list); } +/* + * numerates all sublists and sets the sublist index as userdata + */ +void ui_srclist_generate_sublist_num_data(UiList *list) { + CxList *cxlist = list->data; + CxIterator i = cxListIterator(cxlist); + cx_foreach(UiSubList *, sublist, i) { + sublist->userdata = (void*)i.index; + } +} + /* ---------------------------- UiSubListEventData ---------------------------- */