[PATCH] ui/ncurses: Expand cancel button width

Samuel Mendoza-Jonas sam.mj at au1.ibm.com
Tue Sep 23 11:37:33 EST 2014


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

diff --git a/ui/ncurses/nc-add-url.c b/ui/ncurses/nc-add-url.c
index b1a31dd..518fe03 100644
--- a/ui/ncurses/nc-add-url.c
+++ b/ui/ncurses/nc-add-url.c
@@ -209,7 +209,7 @@ static void add_url_screen_setup_widgets(struct add_url_screen *screen)
 			ok_click, screen);
 	screen->widgets.help_b = widget_new_button(set, 0, 0, 6, _("Help"),
 			help_click, screen);
-	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 6, _("Cancel"),
+	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 6da3630..64a07ec 100644
--- a/ui/ncurses/nc-boot-editor.c
+++ b/ui/ncurses/nc-boot-editor.c
@@ -480,7 +480,7 @@ static void boot_editor_setup_widgets(struct boot_editor *boot_editor,
 					_("OK"), ok_click, boot_editor);
 	boot_editor->widgets.help_b = widget_new_button(set, 0, 0, 6,
 					_("Help"), help_click, boot_editor);
-	boot_editor->widgets.cancel_b = widget_new_button(set, 0, 0, 6,
+	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 f6d544d..5c83e8a 100644
--- a/ui/ncurses/nc-config.c
+++ b/ui/ncurses/nc-config.c
@@ -541,7 +541,7 @@ static void config_screen_setup_empty(struct config_screen *screen)
 	widget_new_label(screen->widgetset, 2, screen->field_x,
 			_("Waiting for configuration data..."));
 	screen->widgets.cancel_b = widget_new_button(screen->widgetset,
-			4, screen->field_x, 6, _("Cancel"),
+			4, screen->field_x, 9, _("Cancel"),
 			cancel_click, screen);
 }
 
@@ -746,7 +746,7 @@ static void config_screen_setup_widgets(struct config_screen *screen,
 			ok_click, screen);
 	screen->widgets.help_b = widget_new_button(set, 0, 0, 6, _("Help"),
 			help_click, screen);
-	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 6, _("Cancel"),
+	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 9, _("Cancel"),
 			cancel_click, screen);
 }
 
diff --git a/ui/ncurses/nc-lang.c b/ui/ncurses/nc-lang.c
index dee1290..0da7b9d 100644
--- a/ui/ncurses/nc-lang.c
+++ b/ui/ncurses/nc-lang.c
@@ -238,7 +238,7 @@ static void lang_screen_setup_empty(struct lang_screen *screen)
 	widget_new_label(screen->widgetset, 2, screen->field_x,
 			_("Waiting for configuration data..."));
 	screen->widgets.cancel_b = widget_new_button(screen->widgetset,
-			4, screen->field_x, 6, _("Cancel"),
+			4, screen->field_x, 9, _("Cancel"),
 			cancel_click, screen);
 }
 
@@ -289,7 +289,7 @@ static void lang_screen_setup_widgets(struct lang_screen *screen,
 
 	screen->widgets.ok_b = widget_new_button(set, 0, 0, 6, _("OK"),
 			ok_click, screen);
-	screen->widgets.cancel_b = widget_new_button(set, 0, 0, 6, _("Cancel"),
+	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