[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/13: installer: Error page width is parameterized.
From: |
guix-commits |
Subject: |
05/13: installer: Error page width is parameterized. |
Date: |
Tue, 15 Nov 2022 06:19:52 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 6b39c3afccbc2fa91746f379f46f6acfa47c8f62
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Nov 3 18:00:52 2022 +0100
installer: Error page width is parameterized.
* gnu/installer/newt/page.scm (run-error-page): Add #:width and honor
it.
---
gnu/installer/newt/page.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/gnu/installer/newt/page.scm b/gnu/installer/newt/page.scm
index 0f508a31c0..e1623a51fd 100644
--- a/gnu/installer/newt/page.scm
+++ b/gnu/installer/newt/page.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
-;;; Copyright © 2019, 2020 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2019, 2020, 2022 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
;;;
;;; This file is part of GNU Guix.
@@ -278,12 +278,12 @@ input box, such as FLAG-PASSWORD."
(destroy-form-and-pop form)
input))))))))
-(define (run-error-page text title)
- "Run a page to inform the user of an error. The page contains the given TEXT
-to explain the error and an \"OK\" button to acknowledge the error. The title
-of the page is set to TITLE."
+(define* (run-error-page text title #:key (width 40))
+ "Run a page to inform the user of an error. The page is WIDTH column wide
+and contains the given TEXT to explain the error and an \"OK\" button to
+acknowledge the error. The title of the page is set to TITLE."
(let* ((text-box
- (make-reflowed-textbox -1 -1 text 40
+ (make-reflowed-textbox -1 -1 text width
#:flags FLAG-BORDER))
(grid (make-grid 1 2))
(ok-button (make-button -1 -1 "OK"))
- 03/13: linux-modules: Add 'load-pci-device-database'., (continued)
- 03/13: linux-modules: Add 'load-pci-device-database'., guix-commits, 2022/11/15
- 02/13: linux-modules: Add support for listing PCI devices., guix-commits, 2022/11/15
- 07/13: installer: Migrate to 'guile-gnutls'., guix-commits, 2022/11/15
- 08/13: gnu: Add safeint., guix-commits, 2022/11/15
- 10/13: doc: Refer to the pt_BR translation., guix-commits, 2022/11/15
- 04/13: installer: Use 'current-guix' for extensions., guix-commits, 2022/11/15
- 09/13: gnu: Add fuzzel., guix-commits, 2022/11/15
- 11/13: doc: Build pt_BR manual., guix-commits, 2022/11/15
- 12/13: doc: Link to the Git book instead of the git-scm.com homepage., guix-commits, 2022/11/15
- 13/13: doc: Add missing closing parentheses in examples., guix-commits, 2022/11/15
- 05/13: installer: Error page width is parameterized.,
guix-commits <=
- 06/13: installer: Report known-unsupported PCI devices., guix-commits, 2022/11/15