Introduce tui_win_info::update_tab_width
authorTom Tromey <tom@tromey.com>
Tue, 18 Jun 2019 00:48:00 +0000 (18:48 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:43 +0000 (07:48 -0600)
commitd83f1fe65da075aa08ac7d6b6ef3508587c94600
tree75a5b57bf86f3695bfff08926a2769e95474929d
parent17374de40e7be36e4eb27d29bb8aac89586ce4a1
Introduce tui_win_info::update_tab_width

This introduces a new tui_win_info::update_tab_width method, and
changes the TUI to call it.  This fixes another spot that was checking
the window type.

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

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