Ticket #3718: 3718-Options-Layout-Equal-split-gets-reverted.patch

File 3718-Options-Layout-Equal-split-gets-reverted.patch, 1.7 KB (added by mooffie, 8 years ago)
  • lib/widget/radio.c

    From 7ece4e2f3f113f5bd2b1ba900959d43bc36e5b77 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sun, 6 Nov 2016 05:07:49 +0200
    Subject: [PATCH] Ticket #3718: Options/Layout/Equal split gets reverted.
    
    ---
     lib/widget/radio.c       | 1 +
     src/filemanager/layout.c | 4 ++--
     2 files changed, 3 insertions(+), 2 deletions(-)
    
    diff --git a/lib/widget/radio.c b/lib/widget/radio.c
    index 4568968..350f8be 100644
    a b radio_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d 
    8585        case ' ': 
    8686            r->sel = r->pos; 
    8787            widget_set_state (w, WST_FOCUSED, TRUE); 
     88            send_message (w->owner, w, MSG_NOTIFY, (int) MSG_KEY, NULL); 
    8889            return MSG_HANDLED; 
    8990 
    9091        case KEY_UP: 
  • src/filemanager/layout.c

    diff --git a/src/filemanager/layout.c b/src/filemanager/layout.c
    index 9c810e8..c70cb0b 100644
    a b layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void * 
    370370        return MSG_HANDLED; 
    371371 
    372372    case MSG_NOTIFY: 
    373         if (sender == WIDGET (radio_widget) && parm == (int) MSG_FOCUS) 
     373        if (sender == WIDGET (radio_widget) && parm == (int) MSG_KEY) 
    374374        { 
    375375            if (panels_layout.horizontal_split != radio_widget->sel) 
    376376            { 
    layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void * 
    404404            return MSG_HANDLED; 
    405405        } 
    406406 
    407         if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_FOCUS) 
     407        if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_KEY) 
    408408        { 
    409409            int eq; 
    410410