* src/ArgHandler.py: Convert to new gconf usage.

* src/Report.py: Convert to new gconf usage.


svn: r3275
This commit is contained in:
Alex Roitman 2004-07-15 02:55:22 +00:00
parent e776ef23bf
commit b49494c697
3 changed files with 7 additions and 5 deletions

View File

@ -32,6 +32,8 @@
* src/plugins/Merge.py: Convert to new gconf usage. * src/plugins/Merge.py: Convert to new gconf usage.
* src/plugins/RelCalc.py: Convert to new gconf usage. * src/plugins/RelCalc.py: Convert to new gconf usage.
* src/plugins/WebPage.py: Convert to new gconf usage. * src/plugins/WebPage.py: Convert to new gconf usage.
* src/ArgHandler.py: Convert to new gconf usage.
* src/Report.py: Convert to new gconf usage.
2004-07-13 Alex Roitman <shura@alex.neuro.umn.edu> 2004-07-13 Alex Roitman <shura@alex.neuro.umn.edu>
* src/Exporter.py: Fix EXPAND/FILL state of the chooser widget. * src/Exporter.py: Fix EXPAND/FILL state of the chooser widget.

View File

@ -283,8 +283,8 @@ class ArgHandler:
if self.imports: if self.imports:
self.parent.import_tool_callback() self.parent.import_tool_callback()
elif GrampsCfg.lastfile and GrampsCfg.autoload: elif GrampsCfg.get_lastfile() and GrampsCfg.get_autoload():
if self.parent.auto_save_load(GrampsCfg.lastfile) == 0: if self.parent.auto_save_load(GrampsCfg.get_lastfile()) == 0:
DbPrompter.DbPrompter(self.parent,0) DbPrompter.DbPrompter(self.parent,0)
else: else:
DbPrompter.DbPrompter(self.parent,0) DbPrompter.DbPrompter(self.parent,0)

View File

@ -839,7 +839,7 @@ class ReportDialog(BareReportDialog):
"""Get the name of the directory to which the target dialog """Get the name of the directory to which the target dialog
box should default. This value can be set in the preferences box should default. This value can be set in the preferences
panel.""" panel."""
return GrampsCfg.report_dir return GrampsCfg.get_report_dir()
def set_default_directory(self, value): def set_default_directory(self, value):
"""Save the name of the current directory, so that any future """Save the name of the current directory, so that any future
@ -849,7 +849,7 @@ class ReportDialog(BareReportDialog):
This means that the last directory used will only be This means that the last directory used will only be
remembered for this session of gramps unless the user saves remembered for this session of gramps unless the user saves
his/her preferences.""" his/her preferences."""
GrampsCfg.report_dir = value GrampsCfg.save_report_dir(value)
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #
@ -1068,7 +1068,7 @@ class ReportDialog(BareReportDialog):
self.paper_table.attach(l,5,6,2,3,gtk.SHRINK|gtk.FILL) self.paper_table.attach(l,5,6,2,3,gtk.SHRINK|gtk.FILL)
PaperMenu.make_paper_menu(self.papersize_menu, PaperMenu.make_paper_menu(self.papersize_menu,
self.option_store.get('paper',GrampsCfg.paper_preference)) self.option_store.get('paper',GrampsCfg.get_paper_preference()))
PaperMenu.make_orientation_menu(self.orientation_menu, PaperMenu.make_orientation_menu(self.orientation_menu,
self.option_store.get('orientation',BaseDoc.PAPER_PORTRAIT)) self.option_store.get('orientation',BaseDoc.PAPER_PORTRAIT))