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:
parent
eb953d9bed
commit
76c966b2b6
@ -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>
|
2007-01-20 Alex Roitman <shura@gramps-project.org>
|
||||||
* src/DataViews/_EventView.py (remove): Use reference map to find
|
* src/DataViews/_EventView.py (remove): Use reference map to find
|
||||||
references to remove.
|
references to remove.
|
||||||
|
@ -280,8 +280,6 @@ class PersonView(PageView.PersonNavView):
|
|||||||
self.tree.set_headers_visible(True)
|
self.tree.set_headers_visible(True)
|
||||||
self.tree.set_fixed_height_mode(True)
|
self.tree.set_fixed_height_mode(True)
|
||||||
self.tree.connect('key-press-event', self.key_press)
|
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)
|
self.tree.connect('start-interactive-search',self.open_all_nodes)
|
||||||
|
|
||||||
scrollwindow = gtk.ScrolledWindow()
|
scrollwindow = gtk.ScrolledWindow()
|
||||||
@ -424,21 +422,11 @@ class PersonView(PageView.PersonNavView):
|
|||||||
db.connect('person-delete', self.person_removed)
|
db.connect('person-delete', self.person_removed)
|
||||||
db.connect('person-rebuild', self.build_tree)
|
db.connect('person-rebuild', self.build_tree)
|
||||||
|
|
||||||
# import hotshot, hotshot.stats
|
if self.active:
|
||||||
|
self.build_tree()
|
||||||
# pr = hotshot.Profile('mystats.profile')
|
else:
|
||||||
# print "Start"
|
self.dirty = True
|
||||||
# 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)
|
|
||||||
|
|
||||||
self.build_tree()
|
|
||||||
self.bookmarks.update_bookmarks(db.get_bookmarks())
|
self.bookmarks.update_bookmarks(db.get_bookmarks())
|
||||||
if self.active:
|
if self.active:
|
||||||
self.bookmarks.redraw()
|
self.bookmarks.redraw()
|
||||||
|
Loading…
Reference in New Issue
Block a user