314 break; |
314 break; |
315 } |
315 } |
316 case UI_VAR_LIST: { |
316 case UI_VAR_LIST: { |
317 // TODO: not sure how correct this is |
317 // TODO: not sure how correct this is |
318 |
318 |
|
319 UiList *f = from->value; |
|
320 UiList *t = to->value; |
|
321 if (f->obj) { |
|
322 t->obj = f->obj; |
|
323 t->update = f->update; |
|
324 } |
|
325 |
319 UiVar tmp = *from; |
326 UiVar tmp = *from; |
320 *from = *to; |
327 *from = *to; |
321 *to = tmp; |
328 *to = tmp; |
322 |
329 |
323 UiList* t = to->value; |
330 UiList* t2 = to->value; |
324 ui_notify(t->observers, NULL); |
331 ui_notify(t2->observers, NULL); |
325 |
332 |
326 break; |
333 break; |
327 } |
334 } |
328 case UI_VAR_RANGE: { |
335 case UI_VAR_RANGE: { |
329 UiRange *f = fromvalue; |
336 UiRange *f = fromvalue; |