diff options
author | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-09-04 15:47:42 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam.mj@au1.ibm.com> | 2015-09-07 16:55:46 +1000 |
commit | f84a33d3b924b3fff999826e4bf86d64067728b2 (patch) | |
tree | 4dc35ce6dc120569fa2185fa8d2ea80f7a5a47aa /ui/ncurses/nc-lang.c | |
parent | b4d338c2ae40f16091a4bb4a0cc4f2e322f4f4b9 (diff) | |
download | petitboot-f84a33d3b924b3fff999826e4bf86d64067728b2.zip petitboot-f84a33d3b924b3fff999826e4bf86d64067728b2.tar.gz |
ui/ncurses: Resize & adjust OK/Help/Cancel buttons
The localisation of 'OK' is cut short in a few languages by a character
or two - adjust the buttons in each affected screen slightly to
accommodate.
Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Diffstat (limited to 'ui/ncurses/nc-lang.c')
-rw-r--r-- | ui/ncurses/nc-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ncurses/nc-lang.c b/ui/ncurses/nc-lang.c index 0b87156..3d86659 100644 --- a/ui/ncurses/nc-lang.c +++ b/ui/ncurses/nc-lang.c @@ -229,7 +229,7 @@ static void lang_screen_layout_widgets(struct lang_screen *screen) widget_move(widget_button_base(screen->widgets.ok_b), y, screen->field_x); widget_move(widget_button_base(screen->widgets.cancel_b), - y, screen->field_x + 10); + y, screen->field_x + 14); } static void lang_screen_setup_empty(struct lang_screen *screen) @@ -286,7 +286,7 @@ static void lang_screen_setup_widgets(struct lang_screen *screen, screen->widgets.safe_mode = widget_new_label(set, 0, 0, _("Selecting 'OK' will exit safe mode")); - screen->widgets.ok_b = widget_new_button(set, 0, 0, 6, _("OK"), + screen->widgets.ok_b = widget_new_button(set, 0, 0, 10, _("OK"), ok_click, screen); screen->widgets.cancel_b = widget_new_button(set, 0, 0, 10, _("Cancel"), cancel_click, screen); |