| 654 ui_button(obj, .label = "Remove", .onclick = repolist_remove, .groups = UI_GROUPS(SETTINGS_STATE_REPOLIST_SELECTED)); |
654 ui_button(obj, .label = "Remove", .onclick = repolist_remove, .groups = UI_GROUPS(SETTINGS_STATE_REPOLIST_SELECTED)); |
| 655 } |
655 } |
| 656 ui_newline(obj); |
656 ui_newline(obj); |
| 657 |
657 |
| 658 UiModel* model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "URL", UI_STRING, "User", UI_STRING, "Encrypted", -1); |
658 UiModel* model = ui_model(obj->ctx, UI_STRING, "Name", UI_STRING, "URL", UI_STRING, "User", UI_STRING, "Encrypted", -1); |
| 659 model->getvalue = (ui_getvaluefunc) settings_repolist_getvalue; |
|
| 660 ui_table(obj, |
659 ui_table(obj, |
| 661 .model = model, |
660 .model = model, |
| |
661 .getvalue = (ui_getvaluefunc) settings_repolist_getvalue, |
| 662 .list = wdata->repos, |
662 .list = wdata->repos, |
| 663 .multiselection = FALSE, |
663 .multiselection = FALSE, |
| 664 .onactivate = repolist_activate, |
664 .onactivate = repolist_activate, |
| 665 .onselection = repolist_selection, |
665 .onselection = repolist_selection, |
| 666 .vexpand = TRUE, .hexpand = TRUE, |
666 .vexpand = TRUE, .hexpand = TRUE, |