diff -r 3380100e20f5 -r 9389313ac00f application/main.c --- a/application/main.c Thu Feb 22 22:25:53 2024 +0100 +++ b/application/main.c Sat Feb 24 20:20:34 2024 +0100 @@ -83,7 +83,7 @@ */ char *str = elm; - return col == 1 ? str : "x"; + return col == 0 ? str : "x"; } void application_startup(UiEvent *event, void *data) { @@ -120,7 +120,7 @@ //UiModel *model = ui_model(obj->ctx, UI_ICON_TEXT, "Col 1", UI_STRING, "Col 2", -1); //model->getvalue = list_getvalue; - ui_listview(obj, .hexpand = true, .vexpand = true, .colspan = 2, .varname = "list", .getvalue = list_getvalue); + ui_combobox(obj, .hexpand = true, .vexpand = false, .colspan = 2, .varname = "list", .getvalue = list_getvalue); } ui_show(obj);