120 } |
120 } |
121 } |
121 } |
122 value->g_type = G_TYPE_INVALID; |
122 value->g_type = G_TYPE_INVALID; |
123 } |
123 } |
124 |
124 |
125 UiListModel* ui_list_model_new(UiVar *var, UiModelInfo *info) { |
125 UiListModel* ui_list_model_new(UiVar *var, UiModel *info) { |
126 UiListModel *model = g_object_new(list_model_type, NULL); |
126 UiListModel *model = g_object_new(list_model_type, NULL); |
127 model->info = info; |
127 model->info = info; |
128 model->var = var; |
128 model->var = var; |
129 model->columntypes = calloc(sizeof(GType), 2 * info->columns); |
129 model->columntypes = calloc(sizeof(GType), 2 * info->columns); |
130 int ncol = 0; |
130 int ncol = 0; |