ui/common/wrapper.c

changeset 693
3e1cd004da0a
parent 671
0ab4c7a18660
child 700
7032f69a325c
equal deleted inserted replaced
692:40e1c2045ef3 693:3e1cd004da0a
216 } 216 }
217 217
218 void ui_sublist_item_set_eventdata(UiSubListItem *item, void *eventdata) { 218 void ui_sublist_item_set_eventdata(UiSubListItem *item, void *eventdata) {
219 item->eventdata = NULL; 219 item->eventdata = NULL;
220 } 220 }
221
222 /* ---------------------------- UiListSelection ---------------------------- */
223
224 UiListSelection* ui_list_get_selection_allocated(UiList *list) {
225 UiListSelection *sel = malloc(sizeof(UiListSelection));
226 *sel = ui_list_get_selection(list);
227 return sel;
228
229 }
230
231 int ui_list_selection_get_count(UiListSelection *sel) {
232 return sel->count;
233 }
234
235 int* ui_list_selection_get_rows(UiListSelection *sel) {
236 return sel->rows;
237 }
238
239 void ui_list_selection_free(UiListSelection *sel) {
240 ui_listselection_free(*sel);
241 free(sel);
242 }

mercurial