From c847c91d61f6f161dad696835d6fc1c299fda895 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 10 Sep 2003 23:58:37 +0000 Subject: [PATCH] * dlg.h (send_message): Use cb_ret_t and widget_msg_t. --- src/ChangeLog | 2 ++ src/dlg.h | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b3844b40c..55c2aca35 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2003-09-10 Pavel Roskin + * dlg.h (send_message): Use cb_ret_t and widget_msg_t. + * main.c (menu_cmd): If the current panel is inactive, use the opposite side to start menu. diff --git a/src/dlg.h b/src/dlg.h index 8ecdf585d..c185e6517 100644 --- a/src/dlg.h +++ b/src/dlg.h @@ -183,10 +183,10 @@ void common_dialog_repaint (struct Dlg_head *h); extern Dlg_head *current_dlg; -static inline int -send_message (Widget *w, int Msg, int Par) +static inline cb_ret_t +send_message (Widget *w, widget_msg_t msg, int parm) { - return (*(w->callback))(w, Msg, Par); + return (*(w->callback)) (w, msg, parm); } void dlg_replace_widget (Dlg_head *h, Widget *old, Widget *new);