ui/common/context.c

changeset 486
a5f3abf8b9d1
parent 476
31213068c2ba
child 492
f74d46ffaca1
equal deleted inserted replaced
485:c584149b22f0 486:a5f3abf8b9d1
325 case UI_VAR_TEXT: { 325 case UI_VAR_TEXT: {
326 UiText *f = fromvalue; 326 UiText *f = fromvalue;
327 UiText *t = to->value; 327 UiText *t = to->value;
328 if(!f->obj) break; 328 if(!f->obj) break;
329 uic_text_copy(f, t); 329 uic_text_copy(f, t);
330 char *tvalue = t->value.ptr ? t->value.ptr : ""; 330 t->restore(t);
331 t->set(t, tvalue);
332 t->setposition(t, t->pos);
333 break; 331 break;
334 } 332 }
335 case UI_VAR_LIST: { 333 case UI_VAR_LIST: {
336 // TODO: not sure how correct this is 334 // TODO: not sure how correct this is
337 335

mercurial