mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
Clarify usage of MSG_IDLE in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
377807c5de
commit
255cc340b5
@ -1091,8 +1091,7 @@ edit_dialog_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
|
||||
|
||||
case MSG_IDLE:
|
||||
widget_want_idle (w, FALSE);
|
||||
edit_update_screen ((WEdit *) h->current->data);
|
||||
return MSG_HANDLED;
|
||||
return send_message (h->current->data, NULL, MSG_IDLE, 0, NULL);
|
||||
|
||||
default:
|
||||
return dlg_default_callback (w, sender, msg, parm, data);
|
||||
@ -1161,6 +1160,10 @@ edit_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *da
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
|
||||
case MSG_IDLE:
|
||||
edit_update_screen (e);
|
||||
return MSG_HANDLED;
|
||||
|
||||
case MSG_DESTROY:
|
||||
edit_clean (e);
|
||||
return MSG_HANDLED;
|
||||
|
Loading…
Reference in New Issue
Block a user