Skip to content

Commit

Permalink
improve ui for grub2 and simplify location selection for grub
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 27, 2014
1 parent 925390c commit e57e04e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
38 changes: 13 additions & 25 deletions src/include/bootloader/grub/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ def HelpBootLoaderLocationWidget

def grubBootLoaderLocationWidget
contents = VBox(
VSpacing(1),
Frame(
_("Boot Loader Location"),
VBox(
Expand All @@ -742,35 +743,22 @@ def grubBootLoaderLocationWidget
Left(
CheckBox(Id("boot_mbr"), _("Boot from &Master Boot Record"))
),
Left(CheckBox(Id("boot_root"), _("Boot from &Root Partition"))),
Left(CheckBox(Id("boot_boot"), _("Boo&t from Boot Partition"))),
Left(
CheckBox(
Id("boot_extended"),
_("Boot from &Extended Partition")
)
),
Left(
CheckBox(
Id("boot_custom"),
Opt(:notify),
_("C&ustom Boot Partition")
)
),
Left(
ComboBox(
Id("boot_custom_list"),
Opt(:editable, :hstretch),
"",
[]
)
),
VStretch()
BootStorage.BootPartitionDevice == BootStorage.RootPartitionDevice ?
Left(CheckBox(Id("boot_root"), _("Boot from &Root Partition"))) :
Left(CheckBox(Id("boot_boot"), _("Boo&t from Boot Partition"))),
BootStorage.ExtendedPartitionDevice ?
Left(
CheckBox(
Id("boot_extended"),
_("Boot from &Extended Partition")
)
) :
Empty()
)
)
)
),
VStretch()
VSpacing(1)
)

if !BootCommon.PartitionInstallable
Expand Down
5 changes: 3 additions & 2 deletions src/include/bootloader/grub2/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ def boot_code_tab
# if name is not included, that it is not displayed
"widget_names" => widget_names,
"contents" => VBox(
VSpacing(1),
HBox( "loader_type", "loader_location"),
VSquash(HBox(
Top(VBox( VSpacing(1), "loader_type")),
"loader_location")),
MarginBox(1, 0.5, "distributor"),
MarginBox(1, 0.5, Left("activate")),
MarginBox(1, 0.5, Left("generic_mbr")),
Expand Down

0 comments on commit e57e04e

Please sign in to comment.