--- a/application/main.c Sun Jun 09 10:24:49 2024 +0200 +++ b/application/main.c Sun Jun 09 15:26:20 2024 +0200 @@ -36,6 +36,7 @@ typedef struct { UiString *str1; UiString *str2; + UiString *path; UiDouble *progress; UiList *list; UiInteger *radio; @@ -74,6 +75,7 @@ UiContext *docctx = ui_document_context(doc); doc->str1 = ui_string_new(docctx, "str1"); doc->str1 = ui_string_new(docctx, "str2"); + doc->path = ui_string_new(docctx, "path"); doc->progress = ui_double_new(docctx, "progress"); doc->list = ui_list_new(docctx, "list"); ui_list_append(doc->list, "test1"); @@ -110,7 +112,7 @@ ui_togglebutton(obj, .label = "Toggle"); ui_checkbox(obj, .label = "Checkbox"); - ui_grid(obj, .fill = 1, .columnspacing = 5, .rowspacing = 5, .margin = 5) { + ui_grid(obj, .fill = 1, .columnspacing = 15, .rowspacing = 15, .margin = 15) { ui_button(obj, .label = "cell1", .hexpand = TRUE); ui_button(obj, .label = "cell2"); ui_newline(obj); @@ -131,6 +133,10 @@ ui_textfield(obj, .value = doc->str1); ui_newline(obj); + ui_path_textfield(obj, .colspan = 2, .varname = "path"); + ui_set(doc->path, "/test/path/123"); + ui_newline(obj); + //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); //model->getvalue = list_getvalue; ui_combobox(obj, .hexpand = true, .vexpand = false, .colspan = 2, .varname = "list", .getvalue = list_getvalue);