1
1

Merge branch '3084_dlg_highlight_first_widget'

* 3084_dlg_highlight_first_widget:
  Ticket #3084: (dlg_init): fix order of messages sent to widgets during dialog initialization.
Этот коммит содержится в:
Andrew Borodin 2013-11-07 16:00:08 +04:00
родитель 83ea8e0f14 c7b7a299e3
Коммит ed65223a23

Просмотреть файл

@ -1192,11 +1192,13 @@ dlg_init (WDialog * h)
h->state = DLG_ACTIVE;
/* Select the first widget that takes focus */
/* first send MSG_DRAW to dialog itself and all widgets... */
dlg_redraw (h);
/* ...then send MSG_FOCUS to select the first widget that can take focus */
while (h->current != NULL && !dlg_focus (h))
h->current = dlg_widget_next (h, h->current);
dlg_redraw (h);
h->ret_value = 0;
}