* src/gramps_main.py: Really fix start-up view when family

view style is the default. Clean up the use of views.
(post_load): Select the person with the alphabetically lowest ID
to be active if no home person is set. Fixes 793127.
(goto_active_person): Create alpha page if it does not exist.
* src/FamilyView.py (init_interface): Do not connect handlers to
events if they already exist;
(set_widgets): Set correct page before hiding the old one. Fixes
resizing issue on applying preferences after changing Family View
layout.


svn: r2087
This commit is contained in:
Alex Roitman
2003-09-03 04:57:36 +00:00
parent 1d25e51110
commit 99cc57c470
3 changed files with 39 additions and 18 deletions

View File

@@ -1631,6 +1631,8 @@ class Gramps:
pg = pg[0]
else:
pg = ''
if not self.alpha_page.has_key(pg):
self.create_new_panel(pg)
model = self.alpha_page[pg]
iter = None
@@ -2051,6 +2053,11 @@ class Gramps:
self.statusbar.set_progress_percentage(1.0)
person = self.db.getDefaultPerson()
if not person:
the_ids = self.db.getPersonMap().keys()
if the_ids:
the_ids.sort()
person = self.db.getPerson(the_ids[0])
self.change_active_person(person)
self.full_update()