mirror of
https://github.com/tromey/gdb-gui.git
synced 2025-07-21 21:11:25 +02:00
add window title formatting
This commit is contained in:
@@ -32,7 +32,7 @@ class DisplayWindow(gui.updatewindow.UpdateWindow):
|
||||
self.command = command
|
||||
self.diff = diff
|
||||
self.last_text = None
|
||||
super(DisplayWindow, self).__init__()
|
||||
super(DisplayWindow, self).__init__('display')
|
||||
|
||||
@in_gdb_thread
|
||||
def on_event(self):
|
||||
@@ -56,7 +56,7 @@ class DisplayWindow(gui.updatewindow.UpdateWindow):
|
||||
if self.diff:
|
||||
self.tag = self.buffer.create_tag('new', foreground = 'red')
|
||||
|
||||
self.window.set_title('GDB "%s" @%d' % (self.command, self.number))
|
||||
self.update_title()
|
||||
self.window.show()
|
||||
|
||||
def _update(self, text):
|
||||
|
Reference in New Issue
Block a user