mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
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.
This commit is contained in:
parent
7ae9979cff
commit
d1e5f758e1
3 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@ (define (run-ethernet-page)
|
|||
#: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 _
|
||||
|
|
|
@ -73,6 +73,7 @@ (define (technology-items)
|
|||
#: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 _
|
||||
|
|
|
@ -49,6 +49,7 @@ (define (run-scheme-page)
|
|||
#: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 @@ (define (device-items)
|
|||
#: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 @@ (define (run-page devices)
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue