enable actiongroups on autoload
svn: r6225
This commit is contained in:
parent
c783b72332
commit
47644bcc15
@ -1,4 +1,6 @@
|
||||
2006-03-29 Don Allingham <don@gramps-project.org>
|
||||
* src/ViewManager.py: enable actiongroups if file loaded before
|
||||
the interface is initialized (command line or autoload)
|
||||
* src/SelectObject.py: Provide images in preview
|
||||
* src/DisplayTabs.py: Add support of SelectObject
|
||||
* src/GenericFilter.py: check for xml file before trying to parse
|
||||
|
@ -229,7 +229,6 @@ class ArgHandler:
|
||||
if filetype in (const.app_gramps,
|
||||
const.app_gramps_xml,
|
||||
const.app_gedcom):
|
||||
print "Here"
|
||||
return self.vm.open_native(filename,filetype)
|
||||
else:
|
||||
return 0
|
||||
|
@ -172,7 +172,8 @@ class ViewManager:
|
||||
self.window = gtk.Window()
|
||||
self.window.set_icon_from_file(const.icon)
|
||||
self.window.connect('destroy', self.quit)
|
||||
|
||||
self.file_loaded = False
|
||||
|
||||
try:
|
||||
width = Config.get_width()
|
||||
height = Config.get_height()
|
||||
@ -262,7 +263,8 @@ class ViewManager:
|
||||
def init_interface(self):
|
||||
self.create_pages()
|
||||
self.change_page(None,None)
|
||||
self.actiongroup.set_visible(False)
|
||||
if not self.file_loaded:
|
||||
self.actiongroup.set_visible(False)
|
||||
self.fileactions.set_sensitive(False)
|
||||
self.do_load_plugins()
|
||||
self.build_tools_menu()
|
||||
@ -711,6 +713,7 @@ class ViewManager:
|
||||
RecentFiles.recent_files(filename,filetype)
|
||||
self.recent_manager.build()
|
||||
|
||||
self.actiongroup.set_visible(True)
|
||||
self.uistate.clear_history()
|
||||
return success
|
||||
|
||||
@ -783,6 +786,7 @@ class ViewManager:
|
||||
#self.undo_callback(None)
|
||||
#self.redo_callback(None)
|
||||
#self.goto_active_person()
|
||||
self.file_loaded = True
|
||||
self.actiongroup.set_visible(True)
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user