118 ui_textfield(obj, .value = doc->str1); |
118 ui_textfield(obj, .value = doc->str1); |
119 ui_newline(obj); |
119 ui_newline(obj); |
120 |
120 |
121 //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); |
121 //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); |
122 //model->getvalue = list_getvalue; |
122 //model->getvalue = list_getvalue; |
123 ui_listview(obj, .hexpand = true, .vexpand = true, .colspan = 2, .varname = "list", .getvalue = list_getvalue); |
123 ui_combobox(obj, .hexpand = true, .vexpand = false, .colspan = 2, .varname = "list", .getvalue = list_getvalue); |
124 } |
124 } |
125 |
125 |
126 ui_show(obj); |
126 ui_show(obj); |
127 } |
127 } |
128 |
128 |