Ticket #3565: 3565-External-Panelize-dialog-should-use-listbox-notification.patch

File 3565-External-Panelize-dialog-should-use-listbox-notification.patch, 1.0 KB (added by mooffie, 8 years ago)
  • src/filemanager/panelize.c

    From bc2b13ec8f644d304eeedac4a5389448a70992d6 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sat, 21 Nov 2015 21:26:34 +0200
    Subject: [PATCH] "External Panelize" dialog should use WListbox's notification
     notification.
    
    ---
     src/filemanager/panelize.c | 8 +++++---
     1 file changed, 5 insertions(+), 3 deletions(-)
    
    diff --git a/src/filemanager/panelize.c b/src/filemanager/panelize.c
    index 9dfe126..171bf27 100644
    a b panelize_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void 
    113113    switch (msg) 
    114114    { 
    115115    case MSG_INIT: 
    116     case MSG_POST_KEY: 
    117     case MSG_FOCUS: 
    118         tty_setcolor (MENU_ENTRY_COLOR); 
    119116        update_command (); 
    120117        return MSG_HANDLED; 
    121118 
     119    case MSG_ACTION: 
     120        if (sender != NULL)     /* The listbox tells us its item has changed. */ 
     121            update_command (); 
     122        /* fall through */ 
     123 
    122124    default: 
    123125        return dlg_default_callback (w, sender, msg, parm, data); 
    124126    }