* src/PedView.py: fix quote

* src/PersonView.py: reset db and build tree on database reload
* src/GrampsDb/_GrampsDbBase.py: clear active on database change


svn: r5917
This commit is contained in:
Don Allingham 2006-02-10 05:10:35 +00:00
parent 8edb0798e2
commit ebba95652f
4 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,7 @@
2006-02-09 Don Allingham <don@gramps-project.org> 2006-02-09 Don Allingham <don@gramps-project.org>
* src/PedView.py: fix quote
* src/PersonView.py: reset db and build tree on database reload
* src/GrampsDb/_GrampsDbBase.py: clear active on database change
* src/FamilyView.py: initialize Family * src/FamilyView.py: initialize Family
* src/EditFamily.py: fix empty gramps_id for new families * src/EditFamily.py: fix empty gramps_id for new families
* src/GrampsWidgets.py: fix empty gramps_id for new families * src/GrampsWidgets.py: fix empty gramps_id for new families

View File

@ -2009,11 +2009,13 @@ class DbState(GrampsDBCallback):
def change_database(self,db): def change_database(self,db):
self.db.close() self.db.close()
self.db = db self.db = db
self.active = None
self.open = True self.open = True
self.emit('database-changed',(self.db,)) self.emit('database-changed',(self.db,))
def no_database(self): def no_database(self):
self.db.close() self.db.close()
self.db = GrampsDbBase() self.db = GrampsDbBase()
self.active = None
self.open = False self.open = False
self.emit('no-database') self.emit('no-database')

View File

@ -259,7 +259,7 @@ class PersonBoxWidget( gtk.DrawingArea):
self.set_size_request(max(xmin,120),max(ymin,25)) self.set_size_request(max(xmin,120),max(ymin,25))
def on_enter_cb(self,widget,event): def on_enter_cb(self,widget,event):
'''' On mouse-over hightlight border''' ''' On mouse-over hightlight border'''
self.border_gc.line_width = 3 self.border_gc.line_width = 3
self.queue_draw() self.queue_draw()

View File

@ -228,10 +228,12 @@ class PersonView(PageView.PersonNavView):
from self.state.db from self.state.db
""" """
self.build_columns() self.build_columns()
self.db = db
db.connect('person-add', self.person_added) db.connect('person-add', self.person_added)
db.connect('person-update', self.person_updated) db.connect('person-update', self.person_updated)
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)
self.build_tree()
self.generic_filter_widget.apply_filter() self.generic_filter_widget.apply_filter()
def goto_active_person(self,obj=None): def goto_active_person(self,obj=None):