SourceForge.net Logo LinuxFund.org Logo
Home Press Mailing Lists Documentation Screenshots People SourceForge Downloads

how to add user settings (saved in .gimprc)

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]


Questions to rower@movieeditor.com
Created December 2, 2003; updated December 2, 2003