[PATCH] ui/ncurses: Expand help button width

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Tue Sep 23 16:05:49 EST 2014


Signed-off-by: Samuel Mendoza-Jonas <sam.mj at au1.ibm.com>
---
 ui/ncurses/nc-add-url.c     | 4 ++--
 ui/ncurses/nc-boot-editor.c | 4 ++--
 ui/ncurses/nc-config.c      | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ui/ncurses/nc-add-url.c b/ui/ncurses/nc-add-url.c
index 518fe03..f8273a2 100644
--- a/ui/ncurses/nc-add-url.c
+++ b/ui/ncurses/nc-add-url.c
@@ -191,7 +191,7 @@ static void add_url_screen_layout_widgets(struct add_url_screen *screen)
 	widget_move(widget_button_base(screen->widgets.help_b),
 		y, screen->field_x + 10);
 	widget_move(widget_button_base(screen->widgets.cancel_b),
-		y, screen->field_x + 20);
+		y, screen->field_x + 23);
 }
 
 static void add_url_screen_setup_widgets(struct add_url_screen *screen)
@@ -207,7 +207,7 @@ static void add_url_screen_setup_widgets(struct add_url_screen *screen)
 
 	screen->widgets.ok_b = widget_new_button(set, 0, 0, 6, _("OK"),
 			ok_click, screen);
-	screen->widgets.help_b = widget_new_button(set, 0, 0, 6, _("Help"),
+	screen->widgets.help_b = widget_new_button(set, 0, 0, 9, _("Help"),
 			help_click, screen);
 	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 9, _("Cancel"),
 			cancel_click, screen);
diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c
index 64a07ec..3d4621b 100644
--- a/ui/ncurses/nc-boot-editor.c
+++ b/ui/ncurses/nc-boot-editor.c
@@ -305,7 +305,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, 29);
+	widget_move(widget_button_base(boot_editor->widgets.cancel_b), y, 32);
 }
 
 static void boot_editor_widget_focus(struct nc_widget *widget, void *arg)
@@ -478,7 +478,7 @@ 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, 6,
+	boot_editor->widgets.help_b = widget_new_button(set, 0, 0, 9,
 					_("Help"), help_click, boot_editor);
 	boot_editor->widgets.cancel_b = widget_new_button(set, 0, 0, 9,
 					_("Cancel"), cancel_click, boot_editor);
diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c
index 5c83e8a..d1918a7 100644
--- a/ui/ncurses/nc-config.c
+++ b/ui/ncurses/nc-config.c
@@ -483,7 +483,7 @@ static void config_screen_layout_widgets(struct config_screen *screen)
 	widget_move(widget_button_base(screen->widgets.help_b),
 			y, screen->field_x + 10);
 	widget_move(widget_button_base(screen->widgets.cancel_b),
-			y, screen->field_x + 20);
+			y, screen->field_x + 23);
 }
 
 static void config_screen_network_change(void *arg, int value)
@@ -744,7 +744,7 @@ static void config_screen_setup_widgets(struct config_screen *screen,
 
 	screen->widgets.ok_b = widget_new_button(set, 0, 0, 6, _("OK"),
 			ok_click, screen);
-	screen->widgets.help_b = widget_new_button(set, 0, 0, 6, _("Help"),
+	screen->widgets.help_b = widget_new_button(set, 0, 0, 9, _("Help"),
 			help_click, screen);
 	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 9, _("Cancel"),
 			cancel_click, screen);
-- 
1.9.3



More information about the Petitboot mailing list