Expand comment about hypothetical MSG_ACTIVATE.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Mooffie 2016-02-23 19:06:38 +02:00 committed by Andrew Borodin
parent 2ed989827f
commit ebf57a81fb

View File

@ -441,7 +441,12 @@ find_parm_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi
/* FIXME: HACK: use first draw of dialog to resolve widget state dependencies.
* Use this time moment to check input field content. We can't do that in MSG_INIT
* because history is not loaded yet.
* Probably, we want new MSG_ACTIVATE message as complement to MSG_VALIDATE one.
* Probably, we want new MSG_ACTIVATE message as complement to MSG_VALIDATE one. Or
* we could name it MSG_POST_INIT.
*
* In one or two other places we use MSG_IDLE instead of MSG_DRAW for a similar
* purpose. We should remember to fix those places too when we introduce the new
* message.
*/
static gboolean first_draw = TRUE;