ui/common/wrapper.c

changeset 736
3ad4792ffadc
parent 700
7032f69a325c
child 746
7899792496cb
equal deleted inserted replaced
735:c249b497ab2e 736:3ad4792ffadc
234 234
235 int* ui_list_selection_get_rows(UiListSelection *sel) { 235 int* ui_list_selection_get_rows(UiListSelection *sel) {
236 return sel->rows; 236 return sel->rows;
237 } 237 }
238 238
239 UIEXPORT void ui_list_set_selected_indices(UiList *list, int *indices, int num) {
240 UiListSelection sel;
241 sel.rows = indices;
242 sel.count = num;
243 if(list->setselection) {
244 list->setselection(list, sel);
245 }
246 }
247
239 void ui_list_selection_free(UiListSelection *sel) { 248 void ui_list_selection_free(UiListSelection *sel) {
240 ui_listselection_free(*sel); 249 ui_listselection_free(*sel);
241 free(sel); 250 free(sel);
242 } 251 }
243 252

mercurial