Introduce set_new_height method
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 21:12:25 +0000 (15:12 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:34 +0000 (07:48 -0600)
commit3f02ce1e3df15731872befd2e711854b2b259745
tree4533dea0d713965b61ea43397d6c1dfc9b3e3a2e
parent1825f487ae903438eb2a9b6f461337d8ec1b06c0
Introduce set_new_height method

This introduces tui_win_info::set_new_height and implements it in the
subclasses as appropriate.  This removes another switch on the window
type.

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

* tui/tui-win.c (tui_source_window_base::set_new_height)
(tui_data_window::set_new_height): New methods.
(make_invisible_and_set_new_height): Call set_new_height method.
* tui/tui-data.h (struct tui_win_info)
(struct tui_source_window_base, struct tui_data_window)
<set_new_height>: New method.
gdb/ChangeLog
gdb/tui/tui-data.h
gdb/tui/tui-win.c