From c6ecc5b3031d36f587d87b95288a54f75a155b4a Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sun, 15 Aug 2004 18:24:06 +0000 Subject: [PATCH] Marked the last item of a QuickWidget array as NULL_QuickWidget. --- edit/editcmd.c | 10 +++++----- edit/editoptions.c | 2 +- src/filegui.c | 2 +- src/view.c | 2 +- src/wtools.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/edit/editcmd.c b/edit/editcmd.c index f5ff285ac..ccb7426d4 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -387,7 +387,7 @@ void menu_save_mode_cmd (void) 0, 0, 0, "savemext"}, {quick_radio, 4, DLG_X, 3, DLG_Y, "", 3, 0, &save_mode_new, str, "t"}, - {0}}; + NULL_QuickWidget}; static QuickDialog dialog = {DLG_X, DLG_Y, -1, -1, N_(" Edit Save Mode "), "[Edit Save Mode]", widgets}; @@ -1178,7 +1178,7 @@ edit_replace_prompt (WEdit * edit, char *replace_text, int xpos, int ypos) 0, B_ENTER, 0, 0, NULL}, {quick_label, 2, CONFIRM_DLG_WIDTH, 2, CONFIRM_DLG_HEIGTH, 0, 0, 0, 0, 0, 0}, - {0}}; + NULL_QuickWidget}; #ifdef HAVE_CHARSET char *msg = _(" Replace with: "); @@ -1253,7 +1253,7 @@ edit_replace_dialog (WEdit * edit, char **search_text, char **replace_text, char 0, "edit-search"}, {quick_label, 2, REPLACE_DLG_WIDTH, 2, REPLACE_DLG_HEIGHT, N_(" Enter search string:"), 0, 0, 0, 0, 0}, - {0}}; + NULL_QuickWidget}; quick_widgets[2].result = &treplace_scanf; quick_widgets[3].result = &treplace_all; @@ -1323,7 +1323,7 @@ edit_search_dialog (WEdit * edit, char **search_text) 0, "edit-search"}, {quick_label, 2, SEARCH_DLG_WIDTH, 2, SEARCH_DLG_HEIGHT, N_(" Enter search string:"), 0, 0, 0, 0, 0}, - {0}}; + NULL_QuickWidget}; quick_widgets[2].result = &treplace_scanf; quick_widgets[3].result = &treplace_backwards; @@ -2582,7 +2582,7 @@ void edit_mail_dialog (WEdit * edit) 0, 0}, {quick_label, 2, 50, 2, MAIL_DLG_HEIGHT, N_(" mail -s -c "), 0, 0, 0, 0, 0}, - {0}}; + NULL_QuickWidget}; quick_widgets[2].str_result = &tmail_cc; quick_widgets[2].text = mail_cc_last ? mail_cc_last : ""; diff --git a/edit/editoptions.c b/edit/editoptions.c index 700615c9c..d34ff32fe 100644 --- a/edit/editoptions.c +++ b/edit/editoptions.c @@ -117,7 +117,7 @@ edit_options_dialog (void) /* 16 */ {quick_label, 4, OPT_DLG_W, OPT_DLG_H - 14, OPT_DLG_H, N_("Key emulation"), 0, 0, 0, 0, NULL}, - {0} + NULL_QuickWidget }; QuickDialog Quick_options = diff --git a/src/filegui.c b/src/filegui.c index 3074be970..c95f0469f 100644 --- a/src/filegui.c +++ b/src/filegui.c @@ -764,7 +764,7 @@ static QuickWidget fmd_widgets[] = { {quick_checkbox, 31, 64, 7, FMDY, N_("&Dive into subdir if exists"), 0, 0, 0 /* &dive_into_subdirs */ , 0, "dive"}, - {0} + NULL_QuickWidget }; static int diff --git a/src/view.c b/src/view.c index 15f8ad1d1..fb86e21d1 100644 --- a/src/view.c +++ b/src/view.c @@ -2114,7 +2114,7 @@ normal_search (WView *view, int direction) {quick_label, 2, SEARCH_DLG_WIDTH, 2, SEARCH_DLG_HEIGHT, N_(" Enter search string:"), 0, 0, 0, 0, 0}, - {0} + NULL_QuickWidget }; static QuickDialog Quick_input = { SEARCH_DLG_WIDTH, SEARCH_DLG_HEIGHT, -1, 0, N_("Search"), diff --git a/src/wtools.c b/src/wtools.c index e4dd6cc30..8d905689b 100644 --- a/src/wtools.c +++ b/src/wtools.c @@ -441,7 +441,7 @@ fg_input_dialog_help (char *header, char *text, char *help, {quick_button, 3, 10, 1, 0, N_("&OK"), 0, B_ENTER, 0, 0, NULL}, {quick_input, 4, 80, 0, 0, "", 58, 0, 0, 0, NULL}, {quick_label, 4, 80, 2, 0, "", 0, 0, 0, 0, NULL}, - {0} + NULL_QuickWidget }; int len;