Update TUI window title when changed

I wrote a TUI window in Python, and I noticed that setting its title
did not result in a refresh, so the new title did not appear.  This
patch corrects this problem.
This commit is contained in:
Tom Tromey
2023-06-29 11:26:55 -06:00
parent 405a9dd064
commit 9fe01a376b
5 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -531,7 +531,7 @@ gdbpy_tui_set_title (PyObject *self, PyObject *newvalue, void *closure)
if (value == nullptr)
return -1;
win->window->title = value.get ();
win->window->set_title (value.get ());
return 0;
}