Merge branch '3718_radio_notify'

* 3718_radio_notify:
  Ticket #3718: Options/Layout/Equal split gets reverted.
This commit is contained in:
Andrew Borodin 2016-11-24 09:59:23 +03:00
commit 3c8e9b389d
2 changed files with 3 additions and 2 deletions

View File

@ -85,6 +85,7 @@ radio_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d
case ' ':
r->sel = r->pos;
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;
case KEY_UP:

View File

@ -370,7 +370,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
return MSG_HANDLED;
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)
{
@ -404,7 +404,7 @@ layout_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *
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;