diff --git a/ChangeLog b/ChangeLog index af8d0acd2..35945eac2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -32,6 +32,8 @@ * src/plugins/Merge.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/ArgHandler.py: Convert to new gconf usage. + * src/Report.py: Convert to new gconf usage. 2004-07-13 Alex Roitman * src/Exporter.py: Fix EXPAND/FILL state of the chooser widget. diff --git a/src/ArgHandler.py b/src/ArgHandler.py index ae691a6ae..97d82c127 100644 --- a/src/ArgHandler.py +++ b/src/ArgHandler.py @@ -283,8 +283,8 @@ class ArgHandler: if self.imports: self.parent.import_tool_callback() - elif GrampsCfg.lastfile and GrampsCfg.autoload: - if self.parent.auto_save_load(GrampsCfg.lastfile) == 0: + elif GrampsCfg.get_lastfile() and GrampsCfg.get_autoload(): + if self.parent.auto_save_load(GrampsCfg.get_lastfile()) == 0: DbPrompter.DbPrompter(self.parent,0) else: DbPrompter.DbPrompter(self.parent,0) diff --git a/src/Report.py b/src/Report.py index 07221e4da..66f47b9d1 100644 --- a/src/Report.py +++ b/src/Report.py @@ -839,7 +839,7 @@ class ReportDialog(BareReportDialog): """Get the name of the directory to which the target dialog box should default. This value can be set in the preferences panel.""" - return GrampsCfg.report_dir + return GrampsCfg.get_report_dir() def set_default_directory(self, value): """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 remembered for this session of gramps unless the user saves 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) 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, self.option_store.get('orientation',BaseDoc.PAPER_PORTRAIT))