fix updatewindow _on_event implementation

This commit is contained in:
Tom Tromey
2013-11-16 20:46:32 -07:00
parent 2246853368
commit 9e46c9e5dd

View File

@@ -62,11 +62,7 @@ class UpdateWindow(Toplevel):
@in_gdb_thread
def _on_event(self, *args):
try:
text = gdb.execute(self.command, to_string = True)
except gdb.error as what:
text = str(what)
gui.startup.send_to_gtk(lambda: self._update(text))
self.on_event()
@in_gtk_thread
def deleted(self):