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

* src/DataViews/_PersonView.py (PersonView.change_db): apply
	dirty flag to initial build to prevent forcing of build on load
	if the view is not in focus.



svn: r7943
This commit is contained in:
Don Allingham 2007-01-20 22:49:09 +00:00
parent e184f44a94
commit 81abc62ace
2 changed files with 9 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2007-01-20 Don Allingham <don@gramps-project.org>
* src/DataViews/_PersonView.py (PersonView.change_db): apply
dirty flag to initial build to prevent forcing of build on load
if the view is not in focus.
2007-01-20 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_EventView.py (remove): Use reference map to find
references to remove.

View File

@ -280,8 +280,6 @@ class PersonView(PageView.PersonNavView):
self.tree.set_headers_visible(True)
self.tree.set_fixed_height_mode(True)
self.tree.connect('key-press-event', self.key_press)
# self.tree.connect('row-expanded', self.expanded)
# self.tree.connect('test-expand-row', self.start_expand)
self.tree.connect('start-interactive-search',self.open_all_nodes)
scrollwindow = gtk.ScrolledWindow()
@ -424,21 +422,11 @@ class PersonView(PageView.PersonNavView):
db.connect('person-delete', self.person_removed)
db.connect('person-rebuild', self.build_tree)
# import hotshot, hotshot.stats
# pr = hotshot.Profile('mystats.profile')
# print "Start"
# pr.runcall(self.build_tree)
# print "Finished"
# pr.close()
# print "Loading profile"
# stats = hotshot.stats.load('mystats.profile')
# print "done"
# stats.strip_dirs()
# stats.sort_stats('time','calls')
# stats.print_stats(100)
if self.active:
self.build_tree()
else:
self.dirty = True
self.build_tree()
self.bookmarks.update_bookmarks(db.get_bookmarks())
if self.active:
self.bookmarks.redraw()