Change "winheight" resizing to use new layout code
authorTom Tromey <tom@tromey.com>
Sat, 26 Oct 2019 22:37:32 +0000 (16:37 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 11 Dec 2019 22:49:03 +0000 (15:49 -0700)
commitd4eeccfe6b3395e12fcc03bdcc20439ccc399e2b
treee5fa11e0988ec21da67163b834142dce19fa8b1f
parent3d97994549706f8f65fe9726b1fec1f0d643f822
Change "winheight" resizing to use new layout code

The "winheight" command resizes a specified window, resizing the other
windows in the layout to adapt.  In the current code, this is done by
examining each possible layout separately.  The new layout code has a
more general approach to handling this, and this patch simply removes
the old code in favor of a call into the new layout engine.

gdb/ChangeLog
2019-12-11  Tom Tromey  <tom@tromey.com>

* tui/tui-win.c (tui_set_win_height_command): Call
tui_adjust_window_height.
(tui_adjust_win_heights, new_height_ok): Remove.
* tui/tui-layout.h (tui_adjust_window_height): Declare.
* tui/tui-layout.c (tui_adjust_window_height): New function.

Change-Id: I6bb681375a46adc8d29fd06f581deed4e078e78a
gdb/ChangeLog
gdb/tui/tui-layout.c
gdb/tui/tui-layout.h
gdb/tui/tui-win.c
This page took 0.033896 seconds and 4 git commands to generate.