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 |