mc/lib/widget
Andrew Borodin 716479ba4f Ticket #3700: fix segfault after switch left panel to info mode.
(widget_replace): if new widget cannot take focus, move focus to other widget
before widget replacement.

In our case, the focused file panel is replaced by Info one. Info panel
a) isn't selectable (it never takes focus) and b) uses CWD of current
panel. Therefore focus must be moved to other file panel to make it
current and correctly set up it's CWD before first draw of Info panel.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-10-23 08:08:15 +03:00
..
button.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
button.h WButton: remove WButton::selected. Use WST_FOCUSED instead. 2016-09-11 11:26:00 +03:00
buttonbar.c Don't focus widget that doesn't have the WOP_SELECTABLE option. 2016-09-11 11:26:00 +03:00
buttonbar.h lib/widget/buttonbar.c: cleanup -Wcast-qual warning. 2016-04-16 10:23:44 +03:00
check.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
check.h Add useful macros for widget type cast. 2012-11-19 21:44:14 +04:00
dialog-switch.c Join widget_state_t and dlg_state_t. 2016-06-02 20:34:38 +03:00
dialog-switch.h Remove unneeded struct keyword for typedef'd structs 2016-03-04 09:23:38 +03:00
dialog.c Reimplement widget focus/selection. 2016-09-11 11:30:20 +03:00
dialog.h Reimplement widget focus/selection. 2016-09-11 11:30:20 +03:00
gauge.c Don't focus widget that doesn't have the WOP_SELECTABLE option. 2016-09-11 11:26:00 +03:00
gauge.h Ticket #2076: make copy/move/delete progress dialog wider. 2013-01-14 16:23:17 +04:00
groupbox.c Don't focus widget that doesn't have the WOP_SELECTABLE option. 2016-09-11 11:26:00 +03:00
groupbox.h lib/widget/*.[ch]: fix indentation. 2012-11-20 13:27:10 +04:00
history.c Reorganize WDialog flags. 2016-06-02 20:41:00 +03:00
history.h Remove unneeded struct keyword for typedef'd structs 2016-03-04 09:23:38 +03:00
hline.c Don't focus widget that doesn't have the WOP_SELECTABLE option. 2016-09-11 11:26:00 +03:00
hline.h WHLine: allow draw text over horizontal line. 2013-01-14 16:23:17 +04:00
input_complete.c Cleanup unused macros. 2016-07-29 09:32:04 +03:00
input_complete.h Move src/filemanager/complete.c to lib/widget/input_complete.c 2011-03-21 23:55:51 +02:00
input.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
input.h (input_is_empty): new WInput API. 2016-05-07 16:19:02 +03:00
label.c Don't focus widget that doesn't have the WOP_SELECTABLE option. 2016-09-11 11:26:00 +03:00
label.h Clarify __attribute ((format (printf))) usage. 2015-11-05 14:33:20 +03:00
listbox-window.c Reorganize WDialog flags. 2016-06-02 20:41:00 +03:00
listbox-window.h Remove unneeded struct keyword for typedef'd structs 2016-03-04 09:23:38 +03:00
listbox.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
listbox.h WListbox: remove WListbox::focused. Use WST_FOCUSED instead. 2016-09-11 11:26:00 +03:00
Makefile.am Ticket #3571: high-level mouse API. 2016-04-01 14:16:08 +03:00
menu.c lib/widget/menu.c: indentation. 2016-09-11 11:52:07 +03:00
menu.h WMenuBar: remove WMenuBar::is_active. Use WST_FOCUSED instead. 2016-09-11 11:30:20 +03:00
mouse.c Rename mouse.was_drag to mouse.last_msg. 2016-04-01 15:29:55 +03:00
mouse.h Rename mouse.was_drag to mouse.last_msg. 2016-04-01 15:29:55 +03:00
quick.c Refactoring of change of current widget. 2016-09-11 11:30:20 +03:00
quick.h Move WOP_DISABLED option to widget_state_t flags 2016-06-02 20:34:38 +03:00
radio.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
radio.h Add useful macros for widget type cast. 2012-11-19 21:44:14 +04:00
widget-common.c Ticket #3700: fix segfault after switch left panel to info mode. 2016-10-23 08:08:15 +03:00
widget-common.h Reimplement widget focus/selection. 2016-09-11 11:30:20 +03:00
wtools.c (dlg_select_widget): rename to widget_select. 2016-09-11 11:30:20 +03:00
wtools.h Remove unneeded struct keyword for typedef'd structs 2016-03-04 09:23:38 +03:00