+2020-02-22 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
+ * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
+ * tui/tui-data.c (tui_set_win_with_focus): Remove.
+ (tui_set_win_focus_to): Move from tui-win.c.
+
2020-02-22 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (make_standard_window, get_locator_window): New
#include "symtab.h"
#include "tui/tui.h"
#include "tui/tui-data.h"
+#include "tui/tui-win.h"
#include "tui/tui-wingeneral.h"
#include "tui/tui-winsource.h"
#include "gdb_curses.h"
}
-/* Set the window that has the logical focus. */
+/* Set the logical focus to win_info. */
void
-tui_set_win_with_focus (struct tui_win_info *win_info)
+tui_set_win_focus_to (struct tui_win_info *win_info)
{
- win_with_focus = win_info;
+ if (win_info != NULL)
+ {
+ tui_unhighlight_win (win_with_focus);
+ win_with_focus = win_info;
+ tui_highlight_win (win_info);
+ }
}
extern void tui_set_term_width_to (int);
extern struct tui_locator_window *tui_locator_win_info_ptr (void);
extern struct tui_win_info *tui_win_with_focus (void);
-extern void tui_set_win_with_focus (struct tui_win_info *);
extern bool tui_win_resized ();
extern void tui_set_win_resized_to (bool);
}
-/* Set the logical focus to win_info. */
-void
-tui_set_win_focus_to (struct tui_win_info *win_info)
-{
- if (win_info != NULL)
- {
- struct tui_win_info *win_with_focus = tui_win_with_focus ();
-
- tui_unhighlight_win (win_with_focus);
- tui_set_win_with_focus (win_info);
- tui_highlight_win (win_info);
- }
-}
-
-
void
tui_win_info::forward_scroll (int num_to_scroll)
{