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-config.c | |
parent | b4d338c2ae40f16091a4bb4a0cc4f2e322f4f4b9 (diff) | |
download | talos-petitboot-f84a33d3b924b3fff999826e4bf86d64067728b2.tar.gz talos-petitboot-f84a33d3b924b3fff999826e4bf86d64067728b2.zip |
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-config.c')
-rw-r--r-- | ui/ncurses/nc-config.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c index f7c6b8c..aba3f99 100644 --- a/ui/ncurses/nc-config.c +++ b/ui/ncurses/nc-config.c @@ -557,9 +557,9 @@ static void config_screen_layout_widgets(struct config_screen *screen) widget_move(widget_button_base(screen->widgets.ok_b), y, screen->field_x); widget_move(widget_button_base(screen->widgets.help_b), - y, screen->field_x + 10); + y, screen->field_x + 14); widget_move(widget_button_base(screen->widgets.cancel_b), - y, screen->field_x + 24); + y, screen->field_x + 28); } static void config_screen_network_change(void *arg, int value) @@ -926,7 +926,7 @@ static void config_screen_setup_widgets(struct config_screen *screen, _("Allow bootloader scripts to modify disks"), config->allow_writes); - 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.help_b = widget_new_button(set, 0, 0, 10, _("Help"), help_click, screen); |