[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: installer: Remove "continue" button from host name page.
From: |
John Darrington |
Subject: |
03/06: installer: Remove "continue" button from host name page. |
Date: |
Tue, 3 Jan 2017 15:43:18 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 6f04be30240dad08876aaf88574297ccdd251b25
Author: John Darrington <address@hidden>
Date: Tue Jan 3 11:20:15 2017 +0100
installer: Remove "continue" button from host name page.
* gnu/system/installer/hostname.scm (host-name-key-handler): Add handler
for the select key.
---
gnu/system/installer/hostname.scm | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/gnu/system/installer/hostname.scm
b/gnu/system/installer/hostname.scm
index aecc327..be5181f 100644
--- a/gnu/system/installer/hostname.scm
+++ b/gnu/system/installer/hostname.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2016 John Darrington <address@hidden>
+;;; Copyright © 2016, 2017 John Darrington <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -68,7 +68,11 @@
(dev (page-datum page 'device)))
(cond
- ((buttons-key-matches-symbol? nav ch 'continue)
+ ((buttons-key-matches-symbol? nav ch 'back)
+ (set! page-stack (cdr page-stack))
+ ((page-refresh (car page-stack)) (car page-stack)))
+
+ ((select-key? ch)
(set! host-name (form-get-value form 0))
(set! page-stack (cdr page-stack))
((page-refresh (car page-stack)) (car page-stack)))
@@ -107,7 +111,7 @@
(form-enter form ch)))
#f))
-(define my-buttons `((continue ,(N_ "Continue") #f)))
+(define my-buttons `((back ,(N_ "Back") #f)))
(define (host-name-init p)
(let* ((s (page-surface p))
- branch wip-installer updated (41f6d77 -> 7462214), John Darrington, 2017/01/03
- 04/06: installer: Rename "file-browser" -> "time-zone"., John Darrington, 2017/01/03
- 03/06: installer: Remove "continue" button from host name page.,
John Darrington <=
- 06/06: installer: Use --fallback when installing., John Darrington, 2017/01/03
- 05/06: installer: Add confidence indicator., John Darrington, 2017/01/03
- 01/06: installer: Add predicate for the network task., John Darrington, 2017/01/03
- 02/06: installer: Add new page to set the system role., John Darrington, 2017/01/03