CVSROOT: /cvs/gnome Module name: gimp Changes by: mitch 05/09/04 06:44:04
Modified files: . : ChangeLog app/tools : gimp-tools.c app/widgets : gimpdevices.c app/core : Makefile.am gimp.c gimptoolinfo.c Added files: app/core : gimp-contexts.c gimp-contexts.h Log message: 2005-09-04 Michael Natterer <[EMAIL PROTECTED]> Cleaned up and fixed the order in which default tool options and user context values are initialized, and added loading / saving of the global user context. Fixes bug #165078 [http://bugzilla.gnome.org/show_bug.cgi?id=165078]. * app/core/Makefile.am * app/core/gimp-contexts.[ch]: new files which manage the global contexts. Contains gimp_contexts_init/exit/load/save/clear(). * app/core/gimp.c: use the new init/exit functions instead of implementing the stuff here. * app/tools/gimp-tools.c: load/save/clear the user context from here so it follows the same logic as the tool options. Reset all tool options before loading the user context and copy the user context's property to all tool options before loading tool options. * app/core/gimptoolinfo.c (gimp_tool_info_new): don't initialize the tool options with the users context's properties. It's way too early here and they will be overwritten later. * app/widgets/gimpdevices.c (gimp_devices_restore): initialize all device contexts with the user context's properties before loading the devices and copying the active one back to the user context. URL : http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=gimp&who=mitch&date=explicit&mindate=2005-09-04%2006:43&maxdate=2005-09-04%2006:45 _______________________________________________ cvs-commits-list mailing list cvs-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/cvs-commits-list