mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(dlg_execute_cmd): move CK_Help handler to separate function dlg_help().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
57342e54f4
commit
20dd30ada3
@ -122,6 +122,16 @@ refresh_cmd (void)
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static void
|
||||
dlg_help (const WDialog * h)
|
||||
{
|
||||
ev_help_t event_data = { NULL, h->help_ctx };
|
||||
|
||||
mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
||||
static cb_ret_t
|
||||
dlg_execute_cmd (WDialog * h, long command)
|
||||
{
|
||||
@ -152,10 +162,7 @@ dlg_execute_cmd (WDialog * h, long command)
|
||||
break;
|
||||
|
||||
case CK_Help:
|
||||
{
|
||||
ev_help_t event_data = { NULL, h->help_ctx };
|
||||
mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data);
|
||||
}
|
||||
dlg_help (h);
|
||||
break;
|
||||
|
||||
case CK_Suspend:
|
||||
|
Loading…
Reference in New Issue
Block a user