| Home | Press | Mailing Lists | Documentation | Screenshots | People | SourceForge | Downloads |
by Stefan Klein
- add a variable in rc.c with a default value (in section commented 'global RC_FILENAME variables')
- make it a global variable by exporting it in in rc.h
- add it to the ParseFunc funcs[] array in rc.c
this will already read the value from the file (or use the default) and you can access it from wherever
- to save options, put together two GLists "update" (options to change/add) and "remove" (options to remove) and
call save_gimprc(&update, &remove) [see commands.c/file_prefs_save_callback for example]