;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2018 Mathieu Othacehe ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu installer newt timezone) #:use-module (gnu installer steps) #:use-module (gnu installer timezone) #:use-module (gnu installer newt page) #:use-module (guix i18n
aboutsummaryrefslogtreecommitdiff
"Back")) #:button-callback-procedure (if (null? path) (lambda _ (raise (condition (&installer-step-abort)))) (lambda _ (loop (all-but-last path)))) #:listbox-callback-procedure (lambda (timezone) (let* ((timezone* (append path (list timezone))) (tz (timezone->posix-tz timezone*))) (if (timezone-has-child? timezone-tree timezone*) (loop timezone*) tz)))))) (loop '())) (let ((timezone-tree (zonetab->timezone-tree zonetab))) (run-page timezone-tree)))
AgeCommit message (Expand)Author