* 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:
Martin Hawlisch
2005-08-09 10:18:56 +00:00
parent 3e153e8f6e
commit 3a8f1f3039
5 changed files with 95 additions and 47 deletions

View File

@@ -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