save and restore window geometry

This commit is contained in:
Tom Tromey
2015-05-13 21:17:19 -06:00
parent 6d49924a9d
commit ff700b4a97
5 changed files with 55 additions and 26 deletions

View File

@@ -29,17 +29,10 @@ class UpdateWindow(Toplevel):
def __init__(self, window_type):
super(UpdateWindow, self).__init__(window_type)
gui.startup.send_to_gtk(self.gtk_initialize)
self._connect_events()
# Display the data now.
self.on_event()
@in_gtk_thread
def gtk_initialize(self):
"""Subclasses should implement this method to do initialization
in the Gtk thread."""
pass
# FIXME: really ought to be passing in an event here.
@in_gdb_thread
def on_event(self):