* 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:
parent
53f20d7d0f
commit
d3cd682eaf
@ -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
|
||||||
|
@ -466,11 +466,14 @@ 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()
|
||||||
|
|
||||||
def set_buttons(self,val):
|
def set_buttons(self,val):
|
||||||
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user