Further refactoring of window size saving

svn: r11921
This commit is contained in:
Gary Burton
2009-02-08 14:37:57 +00:00
parent a0caaf5fe2
commit de81611f5b
5 changed files with 3 additions and 3 deletions

View File

@@ -419,6 +419,7 @@ class ManagedWindow:
self.get_widget(button_name).connect('clicked', function)
def show(self):
print 'show'
if self.isWindow :
self.set_transient_for(self.parent_window)
self.opened = True
@@ -466,6 +467,7 @@ class ManagedWindow:
Takes care of closing children and removing itself from menu.
"""
self._save_size()
self.uistate.gwm.close_track(self.track)
self.opened = False
self.parent_window.present()