mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
Ticket #3718: Options/Layout/Equal split gets reverted.
WRadio sends MSG_NOTIFY with MSG_KEY as parameter to it's owner when selected item is changed. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
0fe1eca733
commit
e68f105e0e
@ -85,6 +85,7 @@ radio_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
|
|||||||
case ' ':
|
case ' ':
|
||||||
r->sel = r->pos;
|
r->sel = r->pos;
|
||||||
widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget. */
|
widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget. */
|
||||||
|
send_message (w->owner, w, MSG_NOTIFY, (int) MSG_KEY, NULL);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case KEY_UP:
|
case KEY_UP:
|
||||||
|
@ -370,7 +370,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
|
|||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case MSG_NOTIFY:
|
case MSG_NOTIFY:
|
||||||
if (sender == WIDGET (radio_widget) && parm == (int) MSG_FOCUS)
|
if (sender == WIDGET (radio_widget) && parm == (int) MSG_KEY)
|
||||||
{
|
{
|
||||||
if (panels_layout.horizontal_split != radio_widget->sel)
|
if (panels_layout.horizontal_split != radio_widget->sel)
|
||||||
{
|
{
|
||||||
@ -404,7 +404,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
|
|||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_FOCUS)
|
if (sender == WIDGET (check_options[0].widget) && parm == (int) MSG_KEY)
|
||||||
{
|
{
|
||||||
int eq;
|
int eq;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user