> Dave Peticolas <[EMAIL PROTECTED]> writes:
>
> > Anybody here working on saving preferences? If not, I'll start
> > doing that.
>
> I haven't looked yet, but before I do, could you give me a brief
> rundown of how you ended up doing this? It'll help as I look at the
> code.
This is done in gnucash/scm/options.scm which is where I moved all
the options code. The restore-form-generator in a single option is
required to generate the ascii representation of a function with
one argument -- an option. The function should set the option to
the value you want to restore to (usually the current value).
The option-database code then generates a function that:
1. Looks up the option in the database. The ascii 'name' of the
database must be given to the function to do this.
2. Applies the option to the restore function.
Look at ~/.gnucash/config.auto to see the output.
dave
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]