* src/FamilyView.py: keep track of local person during update, connect

active-changed signal
* src/gramps_main.py: keep track of active-changed, use local person


svn: r4317
This commit is contained in:
Don Allingham 2005-04-07 02:30:07 +00:00
parent c538477ffe
commit 46fe87842a
3 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,9 @@
2005-04-06 Don Allingham <don@gramps-project.org> 2005-04-06 Don Allingham <don@gramps-project.org>
* src/FamilyView.py: keep track of local person during update * src/FamilyView.py: keep track of local person during update, connect
active-changed signal
* src/PedView.py: update database pointer when database changed, update * src/PedView.py: update database pointer when database changed, update
active person active person
* src/gramps_main.py: keep track of active-changed * src/gramps_main.py: keep track of active-changed, use local person
2005-04-06 Martin Hawlisch <Martin.Hawlisch@gmx.de> 2005-04-06 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/gramps.glade: People View: Add label for filter text input field. * src/gramps.glade: People View: Add label for filter text input field.

View File

@ -96,7 +96,8 @@ class FamilyView:
self.cadded = [ 0, 0 ] self.cadded = [ 0, 0 ]
self.in_drag = False self.in_drag = False
self.init_interface() self.init_interface()
self.parent.connect('active-changed',self.update_callback)
def change_db(self,db): def change_db(self,db):
db.connect('family-add', self.update_callback) db.connect('family-add', self.update_callback)
db.connect('family-update', self.update_callback) db.connect('family-update', self.update_callback)

View File

@ -1480,11 +1480,11 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
else: else:
self.backbtn.set_sensitive(0) self.backbtn.set_sensitive(0)
self.back.set_sensitive(0) self.back.set_sensitive(0)
self.emit('active-changed',(self.active_person.get_handle(),)) self.emit('active-changed',(person.get_handle(),))
else: else:
self.active_person = self.db.get_person_from_handle(person.get_handle()) self.active_person = self.db.get_person_from_handle(person.get_handle())
self.set_buttons(1) self.set_buttons(1)
self.emit('active-changed',(self.active_person.get_handle(),)) self.emit('active-changed',(person.get_handle(),))
def modify_statusbar(self): def modify_statusbar(self):