diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2019-04-24 20:03:57 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2019-04-25 00:45:35 +0200 |
| commit | 399c31d40a918343c5513c3c4a0351f60ec5797b (patch) | |
| tree | 112c0b8b5e3aa86c1b4dd072a371c94acc4bc59c /gnu | |
| parent | 898677ed17672130d20434cd88575d620c97c553 (diff) | |
installer: 'run-input-page' has a new #:input-flags parameter.
* gnu/installer/newt/page.scm (run-input-page): Add #:input-flags and
honor it.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/installer/newt/page.scm | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/installer/newt/page.scm b/gnu/installer/newt/page.scm index 5c650652bdc..e9514e110f1 100644 --- a/gnu/installer/newt/page.scm +++ b/gnu/installer/newt/page.scm | |||
| @@ -75,17 +75,20 @@ this page to TITLE." | |||
| 75 | #:key | 75 | #:key |
| 76 | (allow-empty-input? #f) | 76 | (allow-empty-input? #f) |
| 77 | (default-text #f) | 77 | (default-text #f) |
| 78 | (input-field-width 40)) | 78 | (input-field-width 40) |
| 79 | (input-flags 0)) | ||
| 79 | "Run a page to prompt user for an input. The given TEXT will be displayed | 80 | "Run a page to prompt user for an input. The given TEXT will be displayed |
| 80 | above the input field. The page title is set to TITLE. Unless | 81 | above the input field. The page title is set to TITLE. Unless |
| 81 | allow-empty-input? is set to #t, an error page will be displayed if the user | 82 | allow-empty-input? is set to #t, an error page will be displayed if the user |
| 82 | enters an empty input." | 83 | enters an empty input. INPUT-FLAGS is a bitwise-or'd set of flags for the |
| 84 | input box, such as FLAG-PASSWORD." | ||
| 83 | (let* ((text-box | 85 | (let* ((text-box |
| 84 | (make-reflowed-textbox -1 -1 text | 86 | (make-reflowed-textbox -1 -1 text |
| 85 | input-field-width | 87 | input-field-width |
| 86 | #:flags FLAG-BORDER)) | 88 | #:flags FLAG-BORDER)) |
| 87 | (grid (make-grid 1 3)) | 89 | (grid (make-grid 1 3)) |
| 88 | (input-entry (make-entry -1 -1 20)) | 90 | (input-entry (make-entry -1 -1 20 |
| 91 | #:flags input-flags)) | ||
| 89 | (ok-button (make-button -1 -1 (G_ "OK"))) | 92 | (ok-button (make-button -1 -1 (G_ "OK"))) |
| 90 | (form (make-form))) | 93 | (form (make-form))) |
| 91 | 94 | ||
