* edit.h: Eliminate edit_message_dialog macro - it's used

inconsistently.  Fix all callers to use query_dialog().
This commit is contained in:
Pavel Roskin 2005-05-20 19:27:45 +00:00
parent d7773a07e0
commit 7511729690
4 changed files with 13 additions and 15 deletions

View File

@ -1,3 +1,8 @@
2005-05-20 Pavel Roskin <proski@gnu.org>
* edit.h: Eliminate edit_message_dialog macro - it's used
inconsistently. Fix all callers to use query_dialog().
2005-05-10 Pavel Roskin <proski@gnu.org>
* edit-widget.h: Revert signedness fixes. We need unsigned char

View File

@ -227,7 +227,6 @@ void edit_execute_cmd (WEdit *edit, int command, int char_for_insertion);
#define edit_error_dialog(h,s) query_dialog (h, s, D_ERROR, 1, _("&Dismiss"))
#define edit_message_dialog(h,s) query_dialog (h, s, D_NORMAL, 1, _("&OK"))
#define edit_query_dialog2(h,t,a,b) query_dialog (h, t, D_NORMAL, 2, a, b)
#define edit_query_dialog3(h,t,a,b,c) query_dialog (h, t, D_NORMAL, 3, a, b, c)

View File

@ -2006,7 +2006,8 @@ edit_replace_cmd (WEdit *edit, int again)
message (0, msg, _(" %ld replacements made. "),
times_replaced);
} else
edit_message_dialog (msg, _(" Search string not found "));
query_dialog (msg, _(" Search string not found "),
D_NORMAL, 1, _("&OK"));
replace_continue = 0;
}
} while (replace_continue);

View File

@ -48,10 +48,6 @@
#include "edit-widget.h"
#include "editcmddef.h"
#undef edit_message_dialog
#define edit_message_dialog(w,x,y,h,s) query_dialog (h, s, 0, 1, _("&OK"))
#define CFocus(x)
static void
menu_cmd (int command)
{
@ -67,15 +63,12 @@ static void menu_key (int i)
static void
edit_about_cmd (void)
{
edit_message_dialog (wedit->mainid, 20, 20, _(" About "),
_("\n"
" Cooledit v3.11.5\n"
"\n"
" Copyright (C) 1996 the Free Software Foundation\n"
"\n"
" A user friendly text editor written\n"
" for the Midnight Commander.\n")
);
query_dialog (_(" About "),
_("\n Cooledit v3.11.5\n\n"
" Copyright (C) 1996 the Free Software Foundation\n\n"
" A user friendly text editor written\n"
" for the Midnight Commander.\n"), D_NORMAL,
1, _("&OK"));
}
static void