diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-17 13:19:15 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:41 -0600 |
commit | 48a3bd16c2189174f601600dc6cceedd68e908b6 (patch) | |
tree | b75e64905292ef3215df8ca8d59b11b0efedb453 /gdb/tui/tui-data.h | |
parent | c3bd716ffc20cada32e8a18a209638b578d47f5e (diff) | |
download | gdb-48a3bd16c2189174f601600dc6cceedd68e908b6.zip gdb-48a3bd16c2189174f601600dc6cceedd68e908b6.tar.gz gdb-48a3bd16c2189174f601600dc6cceedd68e908b6.tar.bz2 |
Move make_visible method to tui_gen_win_info
This moves the make_visible method from tui_win_info to its base
class, tui_gen_win_info. This allows the removal of another window
type check.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
from make_visible.
(tui_make_visible, tui_make_invisible): Rewrite.
(tui_win_info::make_visible): Remove.
(tui_source_window_base::make_visible): Update.
* tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
method. Moved from...
(struct tui_win_info) <make_visible>: ...here.
Diffstat (limited to 'gdb/tui/tui-data.h')
-rw-r--r-- | gdb/tui/tui-data.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 59d1900..74efdde 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -51,6 +51,9 @@ struct tui_gen_win_info /* Call to refresh this window. */ virtual void refresh_window (); + /* Make this window visible or invisible. */ + virtual void make_visible (bool visible); + /* Return the name of this type of window. */ virtual const char *name () const { @@ -273,9 +276,6 @@ public: return false; } - /* Make this window visible or invisible. */ - virtual void make_visible (bool visible); - /* Refresh this window and any associated windows. */ virtual void refresh (); |