diff -r f0e901f7d1b7 -r 2f9d8af6a499 ui/common/wrapper.c --- a/ui/common/wrapper.c Thu Jun 04 19:22:54 2026 +0200 +++ b/ui/common/wrapper.c Thu Jun 04 19:59:58 2026 +0200 @@ -98,6 +98,13 @@ list->iter = iter; } +void ui_list_set_save_selection(UiList *list, UiBool value) { + list->save_selection = value; +} + +UiBool ui_list_get_save_selection(UiList *list) { + return list->save_selection; +} /* ------------------------------ UiSublist ------------------------------ */ @@ -275,13 +282,6 @@ /* ---------------------------- UiListSelection ---------------------------- */ -UiListSelection* ui_list_get_selection_allocated(UiList *list) { - UiListSelection *sel = malloc(sizeof(UiListSelection)); - *sel = ui_list_get_selection(list); - return sel; - -} - int ui_list_selection_get_count(UiListSelection *sel) { return sel->count; } @@ -299,10 +299,6 @@ } } -void ui_list_selection_free(UiListSelection *sel) { - ui_listselection_free(*sel); - free(sel); -} /* -------------------------- UiTextChangedEvent -------------------------- */