| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 |
|
| 19 | (define-module (gnu installer newt menu)
|
| 20 | #:use-module (gnu installer steps)
|
| 21 | #:use-module (gnu installer newt page)
|
| 22 | #:use-module (guix i18n)
|
| 23 | #:use-module (newt)
|
| 24 | #:export (run-menu-page))
|
| 25 |
|
| 26 | (define (run-menu-page steps)
|
| 27 | "Run a menu page, asking the user to select where to resume the install
|
| 28 | process from."
|
| 29 | (define (steps->items steps)
|
| 30 | (filter (lambda (step)
|
| 31 | (installer-step-description step))
|
| 32 | steps))
|
| 33 |
|
| 34 | (run-listbox-selection-page
|
| 35 | #:info-text (G_ "Choose where you want to resume the install. \
|
| 36 | You can also abort the installation by pressing the Abort button.")
|
| 37 | #:title (G_ "Installation menu")
|
| 38 | #:listbox-items (steps->items steps)
|
| 39 | #:listbox-item->text installer-step-description
|
| 40 | #:sort-listbox-items? #f
|
| 41 | #:button-text (G_ "Abort")
|
| 42 | #:button-callback-procedure (lambda ()
|
| 43 | (newt-finish)
|
| 44 | (primitive-exit 1))))
|