2007-01-15 Don Allingham <don@gramps-project.org>

* src/DataViews/_PersonView.py: use watch cursor on node expand
	* src/GrampsDb/_ReadGedcom.py: handle empty repo instances
	* src/plugins/TestCaseGenerator.py: fix typo
	* src/DisplayState.py: manage watch cursors better (don't set twice)
	* src/DisplayModels/_PeopleModel.py: maintain backref hash table for quick access 
	to iter to node mappings at the top level.



svn: r7914
This commit is contained in:
Don Allingham
2007-01-16 05:54:40 +00:00
parent dfaea5ebf0
commit 0d92c1b7d5
6 changed files with 42 additions and 11 deletions

View File

@ -258,7 +258,8 @@ class DisplayState(GrampsDb.GrampsDBCallback):
}
def __init__(self, window, status, progress, warnbtn, uimanager):
self.busy = False
self.uimanager = uimanager
self.window = window
GrampsDb.GrampsDBCallback.__init__(self)
@ -306,6 +307,10 @@ class DisplayState(GrampsDb.GrampsDBCallback):
self.phistory.clear()
def set_busy_cursor(self,value):
if value == self.busy:
return
else:
self.busy = value
if value:
self.window.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
else: