application/main.c

changeset 938
be4c88ded783
parent 937
06e03c7e39db
child 940
105bccb3dc66
equal deleted inserted replaced
937:06e03c7e39db 938:be4c88ded783
1233 1233
1234 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) { 1234 ui_grid(obj, .margin = 10, .columnspacing = 10, .rowspacing = 10, .fill = TRUE) {
1235 //UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1); 1235 //UiModel *model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "Email", -1);
1236 //ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection); 1236 //ui_table(obj, .fill = TRUE, .varname = "persons", .model = model, .getvalue = person_getvalue, .onselection = list_onselection);
1237 //ui_model_free(obj->ctx, model); 1237 //ui_model_free(obj->ctx, model);
1238 ui_combobox(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection); 1238 ui_combobox(obj, .varname = "persons", .getvalue = person_getvalue, .onactivate = list_onselection, .hexpand = TRUE, .hfill = TRUE);
1239
1240 ui_button(obj, .label = "Test 1");
1241 ui_newline(obj);
1242
1243 ui_button(obj, .label = "Button 1", .hfill = TRUE);
1244 ui_button(obj, .label = "Button 2");
1245 ui_button(obj, .label = "Button 2");
1239 } 1246 }
1240 1247
1241 1248
1242 1249
1243 1250

mercurial