202 |
202 |
203 size_t len = cxListSize(cols); |
203 size_t len = cxListSize(cols); |
204 info->columns = len; |
204 info->columns = len; |
205 info->types = ui_calloc(ctx, len, sizeof(UiModelType)); |
205 info->types = ui_calloc(ctx, len, sizeof(UiModelType)); |
206 info->titles = ui_calloc(ctx, len, sizeof(char*)); |
206 info->titles = ui_calloc(ctx, len, sizeof(char*)); |
|
207 info->columnsize = ui_calloc(ctx, len, sizeof(int)); |
207 |
208 |
208 int i = 0; |
209 int i = 0; |
209 CxIterator iter = cxListIterator(cols); |
210 CxIterator iter = cxListIterator(cols); |
210 cx_foreach(UiColumn*, c, iter) { |
211 cx_foreach(UiColumn*, c, iter) { |
211 info->types[i] = c->type; |
212 info->types[i] = c->type; |