ui/common/wrapper.c

changeset 736
3ad4792ffadc
parent 700
7032f69a325c
child 746
7899792496cb
--- a/ui/common/wrapper.c	Thu Aug 28 20:12:43 2025 +0200
+++ b/ui/common/wrapper.c	Sat Aug 30 10:14:46 2025 +0200
@@ -236,6 +236,15 @@
     return sel->rows;
 }
 
+UIEXPORT void ui_list_set_selected_indices(UiList *list, int *indices, int num) {
+    UiListSelection sel;
+    sel.rows = indices;
+    sel.count = num;
+    if(list->setselection) {
+        list->setselection(list, sel);
+    }
+}
+
 void ui_list_selection_free(UiListSelection *sel) {
     ui_listselection_free(*sel);
     free(sel);

mercurial