Ticket #3593: 3593-Expand-comment-about-hypothetical-MSG_ACTIVATE.patch

File 3593-Expand-comment-about-hypothetical-MSG_ACTIVATE.patch, 1.2 KB (added by mooffie, 8 years ago)
  • src/filemanager/find.c

    From 7d085191ef17937f7222d19db468b70b83453d05 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Tue, 23 Feb 2016 19:06:38 +0200
    Subject: [PATCH] Expand comment about hypothetical MSG_ACTIVATE.
    
    ---
     src/filemanager/find.c | 7 ++++++-
     1 file changed, 6 insertions(+), 1 deletion(-)
    
    diff --git a/src/filemanager/find.c b/src/filemanager/find.c
    index 3d30a49..1184170 100644
    a b find_parm_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, voi 
    441441    /* FIXME: HACK: use first draw of dialog to resolve widget state dependencies. 
    442442     * Use this time moment to check input field content. We can't do that in MSG_INIT 
    443443     * because history is not loaded yet. 
    444      * Probably, we want new MSG_ACTIVATE message as complement to MSG_VALIDATE one. 
     444     * Probably, we want new MSG_ACTIVATE message as complement to MSG_VALIDATE one. Or 
     445     * we could name it MSG_POST_INIT. 
     446     * 
     447     * In one or two other places we use MSG_IDLE instead of MSG_DRAW for a similar 
     448     * purpose. We should remember to fix those places too when we introduce the new 
     449     * message. 
    445450     */ 
    446451    static gboolean first_draw = TRUE; 
    447452