2006-07-29 Alex Roitman <shura@gramps-project.org>

* src/ManagedWindow.py (ManagedWindow.show): Set opened flag;
	(ManagedWindow.close): Unser opened flag.
	* src/ViewManager.py (undo_history_close): Only close undo history
	window if it is open.
	* src/UndoHistory.py: (UndoHistory.__init__): Remove signal handling;
	(UndoHistory.close): Remove method, use one from the parent class.



svn: r7089
This commit is contained in:
Alex Roitman
2006-07-30 03:24:16 +00:00
parent 74ecbff35f
commit 9172f95988
4 changed files with 12 additions and 6 deletions

View File

@@ -365,6 +365,7 @@ class ManagedWindow:
def show(self):
assert self.window, "ManagedWindow: self.window does not exist!"
self.window.set_transient_for(self.parent_window)
self.opened = True
self.window.show()
def close(self,*obj):
@@ -374,6 +375,7 @@ class ManagedWindow:
Takes care of closing children and removing itself from menu.
"""
self.uistate.gwm.close_track(self.track)
self.opened = False
def present(self):
"""