* src/DbState.py: change_active_person now emits the signal, change_active_handle is only a wrapper for that.
* src/PageView.py (get_stock): Work around not existing definition of gtk.STOCK_MEDIA_MISSING by using gtk.STOCK_MISSING_IMAGE. * src/PedView.py: Start using new PageView logic. Unfinished. * src/gramps_main.py: Enable PedView svn: r5041
This commit is contained in:
@@ -96,9 +96,13 @@ class DbState(GrampsDBCallback.GrampsDBCallback):
|
||||
|
||||
def change_active_person(self,person):
|
||||
self.active = person
|
||||
try:
|
||||
self.emit('active-changed',(person.handle,))
|
||||
except:
|
||||
self.emit('active-changed',(None,))
|
||||
|
||||
def change_active_handle(self,handle):
|
||||
self.emit('active-changed',(handle,))
|
||||
self.change_active_person(self.db.get_person_from_handle(handle))
|
||||
|
||||
def get_active_person(self):
|
||||
return self.active
|
||||
|
||||
Reference in New Issue
Block a user