ui/gtk/model.c

changeset 142
46448d38885c
parent 140
c03c338a7dcf
child 146
dd0ae1c62a72
equal deleted inserted replaced
141:cc2170ea05ad 142:46448d38885c
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;

mercurial