* src/gramps_main.py (Gramps.__init__): Call ArgHandler between

init_interface and post_init_interface.
	* src/ViewManager.py (init_interface): Split off post_init_interface.


svn: r6732
This commit is contained in:
Alex Roitman 2006-05-21 04:13:34 +00:00
parent 419128d50d
commit b50cdad0c2
3 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,7 @@
2006-05-20 Alex Roitman <shura@gramps-project.org>
* src/gramps_main.py (Gramps.__init__): Call ArgHandler between
init_interface and post_init_interface.
* src/ViewManager.py (init_interface): Split off post_init_interface.
* src/GrampsDb/_ReadGedcom.py: Correct set_type calls.
2006-05-19 Don Allingham <don@gramps-project.org>

View File

@ -417,6 +417,7 @@ class ViewManager:
self.fileactions.set_sensitive(True)
self.uistate.widget.set_sensitive(True)
def post_init_interface(self):
# Showing the main window is deferred so that
# ArgHandler can work without it always shown
self.window.show()

View File

@ -177,9 +177,10 @@ class Gramps:
for view in DataViews.get_views():
self.vm.register_view(view)
ArgHandler.ArgHandler(state,self.vm,args)
self.vm.init_interface()
ArgHandler.ArgHandler(state,self.vm,args)
self.vm.post_init_interface()
state.db.request_rebuild()
state.change_active_person(state.db.get_default_person())