ui/common/types.c

changeset 693
3e1cd004da0a
parent 692
40e1c2045ef3
child 728
011d236c4a05
equal deleted inserted replaced
692:40e1c2045ef3 693:3e1cd004da0a
175 if(list->update) { 175 if(list->update) {
176 list->update(list, row); 176 list->update(list, row);
177 } 177 }
178 } 178 }
179 179
180 UiListSelection ui_list_get_selection(UiList *list) {
181 if(list->getselection) {
182 return list->getselection(list);
183 } else {
184 return (UiListSelection){0, NULL};
185 }
186 }
187
180 void ui_list_addobsv(UiList *list, ui_callback f, void *data) { 188 void ui_list_addobsv(UiList *list, ui_callback f, void *data) {
181 list->observers = ui_add_observer(list->observers, f, data); 189 list->observers = ui_add_observer(list->observers, f, data);
182 } 190 }
183 191
184 void ui_list_notify(UiList *list) { 192 void ui_list_notify(UiList *list) {

mercurial