* dlg.h: Remove Dlg_head argument from callback_fn - it's
excessive and can be trivially derived from the widget. (default_proc): Remove Dlg_head argument. Change all callers.
Этот коммит содержится в:
родитель
31f491b01e
Коммит
bc70c8cc1e
@ -28,7 +28,7 @@ WMenu *edit_menubar;
|
|||||||
|
|
||||||
int column_highlighting = 0;
|
int column_highlighting = 0;
|
||||||
|
|
||||||
static int edit_callback (Dlg_head * h, WEdit * edit, int msg, int par);
|
static int edit_callback (WEdit *edit, int msg, int par);
|
||||||
|
|
||||||
int
|
int
|
||||||
edit_event (WEdit * edit, Gpm_Event * event, int *result)
|
edit_event (WEdit * edit, Gpm_Event * event, int *result)
|
||||||
@ -323,7 +323,7 @@ void edit_update_screen (WEdit * e)
|
|||||||
edit_render_keypress (e);
|
edit_render_keypress (e);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int edit_callback (Dlg_head * h, WEdit * e, int msg, int par)
|
static int edit_callback (WEdit *e, int msg, int par)
|
||||||
{
|
{
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case WIDGET_INIT:
|
case WIDGET_INIT:
|
||||||
@ -355,5 +355,5 @@ static int edit_callback (Dlg_head * h, WEdit * e, int msg, int par)
|
|||||||
widget_move (&e->widget, e->curs_row + EDIT_TEXT_VERTICAL_OFFSET, e->curs_col + e->start_col);
|
widget_move (&e->widget, e->curs_row + EDIT_TEXT_VERTICAL_OFFSET, e->curs_col + e->start_col);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
return default_proc (h, msg, par);
|
return default_proc (msg, par);
|
||||||
}
|
}
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user