ui/common/context.c

branch
newapi
changeset 232
e2b33055113f
parent 192
bcacd00ea955
child 239
5dd24929f9f6
equal deleted inserted replaced
231:e160bb392148 232:e2b33055113f
312 t->set(t, tvalue); 312 t->set(t, tvalue);
313 t->setposition(t, t->pos); 313 t->setposition(t, t->pos);
314 break; 314 break;
315 } 315 }
316 case UI_VAR_LIST: { 316 case UI_VAR_LIST: {
317 UiList *f = fromvalue; 317 // TODO: not sure how correct this is
318 UiList *t = to->value; 318
319 if(!f->obj) break; 319 UiVar tmp = *from;
320 uic_list_copy(f, t); 320 *from = *to;
321 t->update(t, -1); 321 *to = tmp;
322
323 UiList* t = to->value;
324 ui_notify(t->observers, NULL);
325
322 break; 326 break;
323 } 327 }
324 case UI_VAR_RANGE: { 328 case UI_VAR_RANGE: {
325 UiRange *f = fromvalue; 329 UiRange *f = fromvalue;
326 UiRange *t = to->value; 330 UiRange *t = to->value;

mercurial