[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: installer: Shrink simple listboxes to their minimum height.
From: |
guix-commits |
Subject: |
05/07: installer: Shrink simple listboxes to their minimum height. |
Date: |
Mon, 6 May 2019 17:23:20 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit d1e5f758e128a3c1042c98563c5b87b81b2f187a
Author: Ludovic Courtès <address@hidden>
Date: Mon May 6 22:06:29 2019 +0200
installer: Shrink simple listboxes to their minimum height.
* gnu/installer/newt/partition.scm (run-partioning-page): Pass
#:listbox-height.
(run-scheme-page): Likewise.
(run-device-page): Likewise.
* gnu/installer/newt/network.scm (run-technology-page): Likewise.
* gnu/installer/newt/ethernet.scm (run-ethernet-page): Likewise.
---
gnu/installer/newt/ethernet.scm | 1 +
gnu/installer/newt/network.scm | 1 +
gnu/installer/newt/partition.scm | 3 +++
3 files changed, 5 insertions(+)
diff --git a/gnu/installer/newt/ethernet.scm b/gnu/installer/newt/ethernet.scm
index d1f3572..0161888 100644
--- a/gnu/installer/newt/ethernet.scm
+++ b/gnu/installer/newt/ethernet.scm
@@ -72,6 +72,7 @@ connection is pending."
#:title (G_ "Ethernet connection")
#:listbox-items services
#:listbox-item->text ethernet-service->text
+ #:listbox-height (min (+ (length services) 2) 10)
#:button-text (G_ "Exit")
#:button-callback-procedure
(lambda _
diff --git a/gnu/installer/newt/network.scm b/gnu/installer/newt/network.scm
index cf27a8c..93fc19a 100644
--- a/gnu/installer/newt/network.scm
+++ b/gnu/installer/newt/network.scm
@@ -73,6 +73,7 @@ network device were found. Do you want to continue anyway?"))
#:title (G_ "Internet access")
#:listbox-items items
#:listbox-item->text technology->text
+ #:listbox-height (min (+ (length items) 2) 10)
#:button-text (G_ "Exit")
#:button-callback-procedure
(lambda _
diff --git a/gnu/installer/newt/partition.scm b/gnu/installer/newt/partition.scm
index 9e9c57e..6de8d13 100644
--- a/gnu/installer/newt/partition.scm
+++ b/gnu/installer/newt/partition.scm
@@ -49,6 +49,7 @@
#:title (G_ "Partition scheme")
#:listbox-items items
#:listbox-item->text cdr
+ #:listbox-height 4
#:sort-listbox-items? #f ;keep the 'root' option first
#:button-text (G_ "Exit")
#:button-callback-procedure button-exit-action)))
@@ -78,6 +79,7 @@ DEVICES list."
#:title (G_ "Disk")
#:listbox-items (device-items)
#:listbox-item->text cdr
+ #:listbox-height 10
#:button-text (G_ "Exit")
#:button-callback-procedure button-exit-action))
(device (car result)))
@@ -732,6 +734,7 @@ by pressing the Exit button.~%~%")))
(result (run-listbox-selection-page
#:info-text (G_ "Please select a partitioning method.")
#:title (G_ "Partitioning method")
+ #:listbox-height (+ (length items) 2)
#:listbox-items items
#:listbox-item->text cdr
#:sort-listbox-items? #f
- branch master updated (d6a68e9 -> fea338c), guix-commits, 2019/05/06
- 02/07: installer: Widen user dialog., guix-commits, 2019/05/06
- 01/07: gnu: mate-power-manager: License is GPLv2+., guix-commits, 2019/05/06
- 03/07: installer: Do not sort methods on the partitioning page., guix-commits, 2019/05/06
- 04/07: installer: Actually translate step descriptions., guix-commits, 2019/05/06
- 06/07: installer: Skip network selection dialogs when there is no choice., guix-commits, 2019/05/06
- 05/07: installer: Shrink simple listboxes to their minimum height.,
guix-commits <=
- 07/07: Add (guix lzlib)., guix-commits, 2019/05/06