Introduce make_visible method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 20:22:21 +0000 (14:22 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:32 +0000 (07:48 -0600)
commitcda37efbffb63e2634ea0600fdad2de6a8f9f3ad
tree8edadf6bec084e722503d27cc686e3cfd591e53d
parent6a0ee02c22b78b6d49fda99b6f2f9154d0cb0a47
Introduce make_visible method

This introduceds the make_visible to tui_win_info and overrides it in
subclasses as appropriate.  This allows the removal of the
tui_win_is_source_type, as it is no longer used.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-wingeneral.c (tui_win_info::make_visible)
(tui_source_window_base::make_visible): New methods.
(make_all_visible): Make method call.
* tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
(struct tui_source_window_base, struct tui_cmd_window): Override
make_visible.
(tui_win_is_source_type): Don't declare.
* tui/tui-data.c (tui_win_is_source_type): Remove.
gdb/ChangeLog
gdb/tui/tui-data.c
gdb/tui/tui-data.h
gdb/tui/tui-wingeneral.c