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 |
85 | 85 | case ' ': |
86 | 86 | r->sel = r->pos; |
87 | 87 | widget_set_state (w, WST_FOCUSED, TRUE); |
| 88 | send_message (w->owner, w, MSG_NOTIFY, (int) MSG_KEY, NULL); |
88 | 89 | return MSG_HANDLED; |
89 | 90 | |
90 | 91 | case KEY_UP: |
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 * |
370 | 370 | return MSG_HANDLED; |
371 | 371 | |
372 | 372 | case MSG_NOTIFY: |
373 | | if (sender == WIDGET (radio_widget) && parm == (int) MSG_FOCUS) |
| 373 | if (sender == WIDGET (radio_widget) && parm == (int) MSG_KEY) |
374 | 374 | { |
375 | 375 | if (panels_layout.horizontal_split != radio_widget->sel) |
376 | 376 | { |
… |
… |
layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void * |
404 | 404 | return MSG_HANDLED; |
405 | 405 | } |
406 | 406 | |
407 | | if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_FOCUS) |
| 407 | if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_KEY) |
408 | 408 | { |
409 | 409 | int eq; |
410 | 410 | |