diff -r 4e0b38bbd6c4 -r 479209198de3 application/main.c --- a/application/main.c Sun Nov 19 09:38:23 2017 +0100 +++ b/application/main.c Wed Nov 22 08:47:52 2017 +0100 @@ -42,6 +42,7 @@ UiDouble *d; UiRange *r; UiList *list; + UiDouble *progress; } Document; typedef struct Entry { @@ -105,6 +106,8 @@ doc->d = ui_double_new(ctx, "d"); doc->r = ui_range_new(ctx, "r"); + doc->progress = ui_double_new(ctx, "progress"); + doc->list = ui_list_new(ctx, "list"); printf("doc list: %d\n", doc->list); Entry *e1 = malloc(sizeof(Entry)); @@ -168,7 +171,7 @@ ui_textfield_nv(obj, "t1"); //ui_textarea_nv(obj, "text"); - d1->t1->observers = ui_add_observer(d1->t1->observers, observ, "t1"); + //d1->t1->observers = ui_add_observer(d1->t1->observers, observ, "t1"); //d1->text->observers = ui_add_observer(d1->text->observers, observ, "text"); UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "name", UI_STRING, "desc", -1); @@ -185,6 +188,7 @@ d1->r->setextent(d1->r, 1); d1->d->observers = ui_add_observer(d1->d->observers, doublechanged, NULL); + ui_progressbar_nv(obj, "progress"); ui_button(obj, "Switch Document", action_newdoc, NULL); ui_show(obj);