ui/common/context.c

changeset 3
f154867f54dc
parent 0
2483f517c562
child 8
726b24766437
equal deleted inserted replaced
2:fbdfaacc4182 3:f154867f54dc
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