132 ui_newline(obj); |
132 ui_newline(obj); |
133 |
133 |
134 ui_textfield(obj, .value = doc->str1); |
134 ui_textfield(obj, .value = doc->str1); |
135 ui_newline(obj); |
135 ui_newline(obj); |
136 |
136 |
137 ui_path_textfield(obj, .colspan = 2, .varname = "path"); |
137 //ui_button(obj, .label="Test"); |
138 ui_set(doc->path, "/test/path/123"); |
138 ui_path_textfield(obj, .varname = "path"); |
|
139 ui_set(doc->path, "/test/path/longdirectoryname/123"); |
139 ui_newline(obj); |
140 ui_newline(obj); |
140 |
141 |
141 //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); |
142 //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); |
142 //model->getvalue = list_getvalue; |
143 //model->getvalue = list_getvalue; |
143 ui_combobox(obj, .hexpand = true, .vexpand = false, .colspan = 2, .varname = "list", .getvalue = list_getvalue); |
144 ui_combobox(obj, .hexpand = true, .vexpand = false, .colspan = 2, .varname = "list", .getvalue = list_getvalue); |