* learn.c (learn_callback): Use common_dialog_repaint().
* achown.c (chl_callback): Likewise.
Этот коммит содержится в:
родитель
6810d3211e
Коммит
5a7226fc59
@ -1,5 +1,8 @@
|
||||
2002-08-22 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* learn.c (learn_callback): Use common_dialog_repaint().
|
||||
* achown.c (chl_callback): Likewise.
|
||||
|
||||
* dialog.h: Cleanup unused functions.
|
||||
* dialog.c: Cleanup unused headers.
|
||||
|
||||
|
@ -228,9 +228,7 @@ static int chl_callback (Dlg_head * h, int Par, int Msg)
|
||||
{
|
||||
switch (Msg) {
|
||||
case DLG_DRAW:
|
||||
attrset (COLOR_NORMAL);
|
||||
dlg_erase (h);
|
||||
draw_box (h, 0, 0, 13, 17);
|
||||
common_dialog_repaint (h);
|
||||
break;
|
||||
|
||||
case DLG_KEY:
|
||||
@ -259,7 +257,7 @@ static void do_enter_key (Dlg_head *h, int f_pos)
|
||||
chl_end = 0;
|
||||
|
||||
chl_dlg = create_dlg (lyy, lxx, 13, 17, dialog_colors, chl_callback,
|
||||
"[Advanced Chown]", "achown_enter", DLG_NONE);
|
||||
"[Advanced Chown]", "achown_enter", DLG_COMPACT);
|
||||
|
||||
/* get new listboxes */
|
||||
chl_list = listbox_new (1, 1, 15, 11, 0, l_call, NULL);
|
||||
|
14
src/learn.c
14
src/learn.c
@ -40,6 +40,7 @@
|
||||
#include "setup.h"
|
||||
#include "main.h"
|
||||
#include "learn.h"
|
||||
#include "wtools.h"
|
||||
|
||||
#define UX 4
|
||||
#define UY 3
|
||||
@ -73,17 +74,6 @@ static int learnok;
|
||||
static int learnchanged;
|
||||
static char* learn_title = N_(" Learn keys ");
|
||||
|
||||
static void learn_refresh (void)
|
||||
{
|
||||
attrset (COLOR_NORMAL);
|
||||
dlg_erase (learn_dlg);
|
||||
|
||||
draw_box (learn_dlg, 1, 2, learn_dlg->lines - 2, learn_dlg->cols - 4);
|
||||
|
||||
attrset (COLOR_HOT_NORMAL);
|
||||
dlg_move (learn_dlg, 1, (learn_dlg->cols - strlen (learn_title)) / 2);
|
||||
addstr (learn_title);
|
||||
}
|
||||
|
||||
static int learn_button (int action, void *param)
|
||||
{
|
||||
@ -225,7 +215,7 @@ static int learn_callback (Dlg_head * h, int Par, int Msg)
|
||||
{
|
||||
switch (Msg) {
|
||||
case DLG_DRAW:
|
||||
learn_refresh ();
|
||||
common_dialog_repaint (h);
|
||||
break;
|
||||
case DLG_KEY:
|
||||
return learn_check_key (Par);
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user