* wtools.c (common_dialog_repaint): Use colors specific to the

current dialog, not fixed colors for "normal" dialogs.
* filegui.c (replace_callback): Eliminate, use
common_dialog_callback() instead.
This commit is contained in:
Pavel Roskin 2002-08-30 23:48:38 +00:00
parent 947a8c8c1b
commit 485a8cbac1
3 changed files with 8 additions and 13 deletions

View File

@ -1,5 +1,10 @@
2002-08-30 Pavel Roskin <proski@gnu.org>
* wtools.c (common_dialog_repaint): Use colors specific to the
current dialog, not fixed colors for "normal" dialogs.
* filegui.c (replace_callback): Eliminate, use
common_dialog_callback() instead.
* filegui.c (file_op_context_create_ui): Use
common_dialog_callback(). Set title to the operation name.
(op_win_callback): Remove, it's unused.

View File

@ -507,17 +507,6 @@ file_progress_show_deleting (FileOpContext *ctx, char *s)
return check_progress_buttons (ctx);
}
static int
replace_callback (struct Dlg_head *h, int Id, int Msg)
{
switch (Msg){
case DLG_DRAW:
dialog_repaint (h, ERROR_COLOR, ERROR_COLOR);
break;
}
return 0;
}
#define X_TRUNC 52
/*
@ -629,7 +618,8 @@ init_replace (FileOpContext *ctx, enum OperationMode mode)
replace_colors [2] = ERROR_COLOR;
replace_colors [3] = COLOR_NORMAL;
ui->replace_dlg = create_dlg (0, 0, 16, rd_xlen, replace_colors, replace_callback,
ui->replace_dlg = create_dlg (0, 0, 16, rd_xlen, replace_colors,
common_dialog_callback,
"[ Replace ]", "replace", DLG_CENTER);
x_set_dialog_title (ui->replace_dlg,

View File

@ -72,7 +72,7 @@ dialog_repaint (struct Dlg_head *h, int back, int title_fore)
void
common_dialog_repaint (struct Dlg_head *h)
{
dialog_repaint (h, COLOR_NORMAL, COLOR_HOT_NORMAL);
dialog_repaint (h, NORMALC, HOT_NORMALC);
}
int