summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-10-13 09:45:04 +1100
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2014-10-13 12:06:14 +1100
commitbcb8d5ce5b43c1866b4520a1e8c4bd75ea141c58 (patch)
treee48b92f03689ce11cc44d3764beaee64ddbeea58
parent780c1b5668503400d507450d48a90fc5588b9887 (diff)
downloadpetitboot-bcb8d5ce5b43c1866b4520a1e8c4bd75ea141c58.zip
petitboot-bcb8d5ce5b43c1866b4520a1e8c4bd75ea141c58.tar.gz
ui/ncurses: Properly size buttons in boot option editor
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
-rw-r--r--ui/ncurses/nc-boot-editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c
index d3529d1..409e638 100644
--- a/ui/ncurses/nc-boot-editor.c
+++ b/ui/ncurses/nc-boot-editor.c
@@ -306,7 +306,7 @@ static void boot_editor_layout_widgets(struct boot_editor *boot_editor)
y++;
widget_move(widget_button_base(boot_editor->widgets.ok_b), y, 9);
widget_move(widget_button_base(boot_editor->widgets.help_b), y, 19);
- widget_move(widget_button_base(boot_editor->widgets.cancel_b), y, 32);
+ widget_move(widget_button_base(boot_editor->widgets.cancel_b), y, 33);
}
static void boot_editor_widget_focus(struct nc_widget *widget, void *arg)
@@ -479,9 +479,9 @@ static void boot_editor_setup_widgets(struct boot_editor *boot_editor,
boot_editor->widgets.ok_b = widget_new_button(set, 0, 0, 6,
_("OK"), ok_click, boot_editor);
- boot_editor->widgets.help_b = widget_new_button(set, 0, 0, 9,
+ boot_editor->widgets.help_b = widget_new_button(set, 0, 0, 10,
_("Help"), help_click, boot_editor);
- boot_editor->widgets.cancel_b = widget_new_button(set, 0, 0, 9,
+ boot_editor->widgets.cancel_b = widget_new_button(set, 0, 0, 10,
_("Cancel"), cancel_click, boot_editor);
}
OpenPOWER on IntegriCloud