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

@ -154,7 +154,6 @@ class EditPrimary(ManagedWindow.ManagedWindow):
for key in self.signal_keys: for key in self.signal_keys:
self.db.disconnect(key) self.db.disconnect(key)
self._cleanup_on_exit() self._cleanup_on_exit()
self._save_size()
ManagedWindow.ManagedWindow.close(self) ManagedWindow.ManagedWindow.close(self)
def close(self, *obj): def close(self, *obj):

View File

@ -202,5 +202,4 @@ class EditReference(ManagedWindow.ManagedWindow):
def close(self,*obj): def close(self,*obj):
for key in self.signal_keys: for key in self.signal_keys:
self.db.disconnect(key) self.db.disconnect(key)
self._save_size()
ManagedWindow.ManagedWindow.close(self) ManagedWindow.ManagedWindow.close(self)

View File

@ -124,5 +124,4 @@ class EditSecondary(ManagedWindow.ManagedWindow):
for key in self.signal_keys: for key in self.signal_keys:
self.db.disconnect(key) self.db.disconnect(key)
self._cleanup_on_exit() self._cleanup_on_exit()
self._save_size()
ManagedWindow.ManagedWindow.close(self) ManagedWindow.ManagedWindow.close(self)

View File

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

View File

@ -100,6 +100,7 @@ class BaseSelector(ManagedWindow.ManagedWindow):
self._local_init() self._local_init()
self._set_size()
self.show() self.show()
#show or hide search bar? #show or hide search bar?