[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/09: installer: Show, don't Hide.
From: |
guix-commits |
Subject: |
07/09: installer: Show, don't Hide. |
Date: |
Mon, 26 Aug 2019 09:57:58 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 55c43108ac763c68f95cce3d32c60b8944b771f5
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Sat Jun 8 05:04:36 2019 +0200
installer: Show, don't Hide.
* gnu/installer/newt/user.scm (run-user-add-page): Change the input
visibility checkbox's text to ‘Show’, and default to unchecked.
* gnu/installer/newt/page.scm (run-input-page): Likewise.
Rename INPUT-HIDE-CHECKBOX? argument to INPUT-VISIBILITY-CHECKBOX?.
---
gnu/installer/newt/page.scm | 9 +++++----
gnu/installer/newt/user.scm | 7 ++++---
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/gnu/installer/newt/page.scm b/gnu/installer/newt/page.scm
index 728721c..630efde 100644
--- a/gnu/installer/newt/page.scm
+++ b/gnu/installer/newt/page.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <address@hidden>
;;; Copyright © 2019 Ludovic Courtès <address@hidden>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -75,7 +76,7 @@ this page to TITLE."
#:key
(allow-empty-input? #f)
(default-text #f)
- (input-hide-checkbox? #f)
+ (input-visibility-checkbox? #f)
(input-field-width 40)
(input-flags 0))
"Run a page to prompt user for an input. The given TEXT will be displayed
@@ -88,8 +89,8 @@ input box, such as FLAG-PASSWORD."
input-field-width
#:flags FLAG-BORDER))
(input-visible-cb
- (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
- (input-flags* (if input-hide-checkbox?
+ (make-checkbox -1 -1 (G_ "Show") #\space "x "))
+ (input-flags* (if input-visibility-checkbox?
(logior FLAG-PASSWORD FLAG-SCROLL
input-flags)
input-flags))
@@ -102,7 +103,7 @@ input box, such as FLAG-PASSWORD."
(apply
horizontal-stacked-grid
GRID-ELEMENT-COMPONENT input-entry
- `(,@(if input-hide-checkbox?
+ `(,@(if input-visibility-checkbox?
(list GRID-ELEMENT-COMPONENT input-visible-cb)
'())))
GRID-ELEMENT-COMPONENT ok-button))
diff --git a/gnu/installer/newt/user.scm b/gnu/installer/newt/user.scm
index dab8051..b747886 100644
--- a/gnu/installer/newt/user.scm
+++ b/gnu/installer/newt/user.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018 Mathieu Othacehe <address@hidden>
;;; Copyright © 2019 Ludovic Courtès <address@hidden>
+;;; Copyright © 2019 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -55,7 +56,7 @@ REAL-NAME, and HOME-DIRECTORY as the initial values in the
form."
(entry-home-directory (make-entry -1 -1 entry-width
#:initial-value home-directory))
(password-visible-cb
- (make-checkbox -1 -1 (G_ "Hide") #\x "x "))
+ (make-checkbox -1 -1 (G_ "Show") #\space "x "))
(entry-password (make-entry -1 -1 entry-width
#:flags (logior FLAG-PASSWORD
FLAG-SCROLL)))
@@ -156,7 +157,7 @@ a thunk, if the confirmation doesn't match PASSWORD, and
return its result."
(run-input-page (G_ "Please confirm the password.")
(G_ "Password confirmation required")
#:allow-empty-input? #t
- #:input-hide-checkbox? #t))
+ #:input-visibility-checkbox? #t))
(if (string=? password confirmation)
password
@@ -173,7 +174,7 @@ a thunk, if the confirmation doesn't match PASSWORD, and
return its result."
(run-input-page (G_ "Please choose a password for the system \
administrator (\"root\").")
(G_ "System administrator password")
- #:input-hide-checkbox? #t))
+ #:input-visibility-checkbox? #t))
(confirm-password password run-root-password-page))
- branch master updated (6cef554 -> 3c56d03), guix-commits, 2019/08/26
- 04/09: gnu: mupen64plus-rsp-hle: Use HTTPS home page., guix-commits, 2019/08/26
- 06/09: gnu: iverilog: Update to 10.3., guix-commits, 2019/08/26
- 03/09: gnu: mupen64plus-input-sdl: Use HTTPS home page., guix-commits, 2019/08/26
- 02/09: gnu: mupen64plus-audio-sdl: Use HTTPS home page., guix-commits, 2019/08/26
- 05/09: gnu: mupen64plus-rsp-z64: Use HTTPS home page., guix-commits, 2019/08/26
- 01/09: gnu: mupen64plus-core: Use HTTPS home page., guix-commits, 2019/08/26
- 07/09: installer: Show, don't Hide.,
guix-commits <=
- 08/09: installer: Partition as the last step., guix-commits, 2019/08/26
- 09/09: installer: Hide the Wi-Fi passphrase by default., guix-commits, 2019/08/26