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

view style is the default. Clean up the use of views.


svn: r2084
This commit is contained in:
Alex Roitman 2003-09-03 00:54:55 +00:00
parent 94f730a17a
commit c525f2feec
2 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2003-09-02 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps_main.py: Really fix start-up view when family
view style is the default. Clean up the use of views.
2003-09-02 Tim Waugh <twaugh@redhat.com> 2003-09-02 Tim Waugh <twaugh@redhat.com>
* src/plugins/GraphViz.py: Fixed typo. * src/plugins/GraphViz.py: Fixed typo.
* src/gramps_main.py: Fixed start-up view when family view style * src/gramps_main.py: Fixed start-up view when family view style

View File

@ -466,10 +466,13 @@ class Gramps:
self.find_person = None self.find_person = None
self.find_source = None self.find_source = None
self.find_media = None self.find_media = None
if GrampsCfg.defaultview == 0: if GrampsCfg.defaultview == 0:
self.views.set_current_page(0) self.views.set_current_page(PERSON_VIEW)
elif GrampsCfg.familyview == 0:
self.views.set_current_page(FAMILY_VIEW1)
else: else:
self.views.set_current_page(2) self.views.set_current_page(FAMILY_VIEW2)
self.topWindow.show() self.topWindow.show()
@ -478,7 +481,7 @@ class Gramps:
self.tools_menu.set_sensitive(val) self.tools_menu.set_sensitive(val)
self.report_button.set_sensitive(val) self.report_button.set_sensitive(val)
self.tool_button.set_sensitive(val) self.tool_button.set_sensitive(val)
if self.views.get_current_page() == 0: if self.views.get_current_page() == PERSON_VIEW:
self.remove_button.set_sensitive(val) self.remove_button.set_sensitive(val)
self.edit_button.set_sensitive(val) self.edit_button.set_sensitive(val)
@ -1907,7 +1910,7 @@ class Gramps:
self.db.buildPersonDisplay(epo.person.getId()) self.db.buildPersonDisplay(epo.person.getId())
self.change_active_person(epo.person) self.change_active_person(epo.person)
self.redisplay_person_list(epo.person) self.redisplay_person_list(epo.person)
if self.views.get_current_page() == 1: if self.views.get_current_page() in [FAMILY_VIEW1,FAMILY_VIEW2]:
self.family_view.load_family() self.family_view.load_family()
for p in plist: for p in plist:
self.place_view.new_place_after_edit(p) self.place_view.new_place_after_edit(p)