ui/common/context.c

changeset 492
f74d46ffaca1
parent 486
a5f3abf8b9d1
child 507
7f380a3ac9a1
equal deleted inserted replaced
491:beb5963c3501 492:f74d46ffaca1
345 UiVar tmp = *from; 345 UiVar tmp = *from;
346 *from = *to; 346 *from = *to;
347 *to = tmp; 347 *to = tmp;
348 348
349 UiList* t2 = to->value; 349 UiList* t2 = to->value;
350 ui_notify(t2->observers, NULL); 350 if(t->update) {
351 t->update(t, -1);
352 }
353 ui_notify(t2->observers, NULL); // TODO: why not t?
351 354
352 break; 355 break;
353 } 356 }
354 case UI_VAR_RANGE: { 357 case UI_VAR_RANGE: {
355 UiRange *f = fromvalue; 358 UiRange *f = fromvalue;

mercurial