From 46fe87842ad54b5b91bbc088696de1e303fad19e Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 7 Apr 2005 02:30:07 +0000 Subject: [PATCH] * 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 --- gramps2/ChangeLog | 5 +++-- gramps2/src/FamilyView.py | 3 ++- gramps2/src/gramps_main.py | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 3135e6d14..aea03c339 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,8 +1,9 @@ 2005-04-06 Don Allingham - * 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 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 * src/gramps.glade: People View: Add label for filter text input field. diff --git a/gramps2/src/FamilyView.py b/gramps2/src/FamilyView.py index c5c8069ea..4b3f8836c 100644 --- a/gramps2/src/FamilyView.py +++ b/gramps2/src/FamilyView.py @@ -96,7 +96,8 @@ class FamilyView: self.cadded = [ 0, 0 ] self.in_drag = False self.init_interface() - + self.parent.connect('active-changed',self.update_callback) + def change_db(self,db): db.connect('family-add', self.update_callback) db.connect('family-update', self.update_callback) diff --git a/gramps2/src/gramps_main.py b/gramps2/src/gramps_main.py index 4817cb669..c9f9fcdd3 100755 --- a/gramps2/src/gramps_main.py +++ b/gramps2/src/gramps_main.py @@ -1480,11 +1480,11 @@ class Gramps(GrampsDBCallback.GrampsDBCallback): else: self.backbtn.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: self.active_person = self.db.get_person_from_handle(person.get_handle()) self.set_buttons(1) - self.emit('active-changed',(self.active_person.get_handle(),)) + self.emit('active-changed',(person.get_handle(),)) def modify_statusbar(self):