From bc70c8cc1e2326b27f90f39c990a197260fdf9b7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 13 Nov 2002 02:27:35 +0000 Subject: [PATCH] * 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. --- edit/editwidget.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edit/editwidget.c b/edit/editwidget.c index 18a166fea..63fd93600 100644 --- a/edit/editwidget.c +++ b/edit/editwidget.c @@ -28,7 +28,7 @@ WMenu *edit_menubar; 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 edit_event (WEdit * edit, Gpm_Event * event, int *result) @@ -323,7 +323,7 @@ void edit_update_screen (WEdit * 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) { 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); return 1; } - return default_proc (h, msg, par); + return default_proc (msg, par); }