Clarify usage of MSG_IDLE in mcedit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Egmont Koblinger 2013-11-15 13:24:34 +04:00 committed by Andrew Borodin
parent 377807c5de
commit 255cc340b5

View File

@ -1091,8 +1091,7 @@ edit_dialog_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, v
case MSG_IDLE: case MSG_IDLE:
widget_want_idle (w, FALSE); widget_want_idle (w, FALSE);
edit_update_screen ((WEdit *) h->current->data); return send_message (h->current->data, NULL, MSG_IDLE, 0, NULL);
return MSG_HANDLED;
default: default:
return dlg_default_callback (w, sender, msg, parm, data); 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; return MSG_HANDLED;
} }
case MSG_IDLE:
edit_update_screen (e);
return MSG_HANDLED;
case MSG_DESTROY: case MSG_DESTROY:
edit_clean (e); edit_clean (e);
return MSG_HANDLED; return MSG_HANDLED;