summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-01-30 21:53:30 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-01-31 08:46:33 +0800
commit5a271400e9b5396cb90258b7582fe7ac6bcc2230 (patch)
treed719b61b137ac5fd8bfdc2b679f05fe7952ef3b3
parent8cd03c27d3875beb15a489f1f05d0528408cef20 (diff)
downloadpetitboot-5a271400e9b5396cb90258b7582fe7ac6bcc2230.zip
petitboot-5a271400e9b5396cb90258b7582fe7ac6bcc2230.tar.gz
ui/ncurses: Use descriptive field labels for boot editor
Rather than the brief names for the boot editor field label, expand (and capitalise) for a more-friendly form. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--ui/ncurses/nc-boot-editor.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c
index 90bd003..ac07156 100644
--- a/ui/ncurses/nc-boot-editor.c
+++ b/ui/ncurses/nc-boot-editor.c
@@ -425,7 +425,7 @@ static void boot_editor_setup_widgets(struct boot_editor *boot_editor,
widgetset_set_widget_focus(boot_editor->widgetset,
boot_editor_widget_focus, boot_editor);
- boot_editor->widgets.device_l = widget_new_label(set, 0, 0, "device:");
+ boot_editor->widgets.device_l = widget_new_label(set, 0, 0, "Device:");
boot_editor->widgets.device_f = widget_new_select(set, 0, 0,
field_size);
widget_select_on_change(boot_editor->widgets.device_f,
@@ -433,20 +433,24 @@ static void boot_editor_setup_widgets(struct boot_editor *boot_editor,
boot_editor_populate_device_select(boot_editor, sysinfo);
- boot_editor->widgets.image_l = widget_new_label(set, 0, 0, "image:");
+ boot_editor->widgets.image_l = widget_new_label(set, 0, 0,
+ "Kernel:");
boot_editor->widgets.image_f = widget_new_textbox(set, 0, 0,
field_size, boot_editor->image);
- boot_editor->widgets.initrd_l = widget_new_label(set, 0, 0, "initrd:");
+ boot_editor->widgets.initrd_l = widget_new_label(set, 0, 0,
+ "Initrd:");
boot_editor->widgets.initrd_f = widget_new_textbox(set, 0, 0,
field_size,
boot_editor->initrd);
- boot_editor->widgets.dtb_l = widget_new_label(set, 0, 0, "dtb:");
+ boot_editor->widgets.dtb_l = widget_new_label(set, 0, 0,
+ "Device tree:");
boot_editor->widgets.dtb_f = widget_new_textbox(set, 0, 0,
field_size, boot_editor->dtb);
- boot_editor->widgets.args_l = widget_new_label(set, 0, 0, "args:");
+ boot_editor->widgets.args_l = widget_new_label(set, 0, 0,
+ "Boot arguments:");
boot_editor->widgets.args_f = widget_new_textbox(set, 0, 0,
field_size, boot_editor->args);
@@ -502,7 +506,7 @@ struct boot_editor *boot_editor_init(struct cui *cui,
boot_editor->state = STATE_EDIT;
boot_editor->label_x = 1;
- boot_editor->field_x = 9;
+ boot_editor->field_x = 17;
nc_scr_init(&boot_editor->scr, pb_boot_editor_sig, 0,
cui, boot_editor_process_key,
OpenPOWER on IntegriCloud