gimp/app/paint
Michael Natterer 18d9161eea Get rid of the "current_context" which was in fact just a bunch of global
2004-04-15  Michael Natterer  <mitch@gimp.org>

	Get rid of the "current_context" which was in fact just a bunch of
	global variables. Instead, pass the needed context all the way
	from the GUI and the PDB to the core. This is a prerequisite for
	macro recording and generally helps separating the various
	subsystems from each other. Work in progress...

	* app/core/gimp.[ch]: removed member "current_context" and
	gimp_[get|set]_current_context().

	* app/core/gimp-edit.[ch]
	* app/core/gimpdrawable-blend.[ch]
	* app/core/gimpdrawable-bucket-fill.[ch]
	* app/core/gimpdrawable-offset.[ch]
	* app/core/gimpdrawable-transform.[ch]
	* app/core/gimpimage-crop.[ch]
	* app/core/gimpimage-flip.[ch]
	* app/core/gimpimage-merge.[ch]
	* app/core/gimpimage-resize.[ch]
	* app/core/gimpimage-rotate.[ch]
	* app/core/gimpimage.[ch]
	* app/core/gimpimagefile.[ch]
	* app/core/gimpitem-linked.[ch]
	* app/core/gimpitem.[ch]
	* app/core/gimplayer.[ch]
	* app/core/gimpselection.[ch]
	* app/core/gimptemplate.[ch]
	* app/file/file-open.[ch]
	* app/file/file-save.[ch]
	* app/pdb/procedural_db.[ch]
	* app/text/gimptext-compat.[ch]
	* app/text/gimptextlayer-transform.[ch]
	* app/gui/brush-select.[ch]
	* app/gui/font-select.[ch]
	* app/gui/gradient-select.[ch]
	* app/gui/palette-select.[ch]
	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
	parameters and use the passed context instead of
	gimp_get_current_context().

	* app/app_procs.c
	* app/batch.c
	* app/core/gimpchannel.c
	* app/core/gimpdrawable.c
	* app/paint/gimperaser.c
	* app/paint/gimppaintbrush.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-ins.c
	* app/text/gimptextlayer.c
	* app/tools/gimpblendtool.c
	* app/tools/gimpbucketfilltool.c
	* app/tools/gimpcroptool.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpfliptool.c
	* app/tools/gimpinktool.c
	* app/tools/gimptransformtool.c
	* app/vectors/gimpvectors.c
	* app/gui/convert-dialog.c
	* app/gui/drawable-commands.c
	* app/gui/edit-commands.c
	* app/gui/file-commands.c
	* app/gui/file-new-dialog.c
	* app/gui/file-open-dialog.c
	* app/gui/file-save-dialog.c
	* app/gui/image-commands.c
	* app/gui/layers-commands.c
	* app/gui/offset-dialog.c
	* app/gui/select-commands.c
	* app/gui/vectors-commands.c
	* app/widgets/gimpdnd.c
	* app/widgets/gimpdocumentview.c
	* app/widgets/gimphelp.c
	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
	GIMP_CONTEXT(tool_options) or whatever is the right context
	to the changed core functions.

	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
	generated PDB invokers.

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/brushes.pdb
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/image.pdb
	* tools/pdbgen/pdb/layer.pdb
	* tools/pdbgen/pdb/paint_tools.pdb
	* tools/pdbgen/pdb/palette.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/palettes.pdb
	* tools/pdbgen/pdb/paths.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/patterns.pdb
	* tools/pdbgen/pdb/selection.pdb
	* tools/pdbgen/pdb/text_tool.pdb
	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
	parameter to the changed core functions.

	* app/pdb/*_cmds.c: regenerated.
2004-04-14 23:37:34 +00:00
..
.cvsignore Core/UI separation for the paint tools: 2002-02-14 19:31:16 +00:00
Makefile.am app/file/Makefile.am app/paint/Makefile.am app/text/Makefile.am changed 2004-02-09 09:11:10 +00:00
gimp-paint.c reordered GimpDodgeBurn to the end of the paint info list so the paint 2003-11-30 12:59:17 +00:00
gimp-paint.h app/paint/Makefile.am removed... ...and added. 2003-09-18 13:51:10 +00:00
gimpairbrush.c took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpairbrush.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimpairbrushoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpairbrushoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpclone.c also return the color's alpha byte if it has alpha, not only the converted 2004-01-18 13:19:59 +00:00
gimpclone.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpcloneoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpcloneoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpconvolve.c added utility function gimp_paint_options_get_fade() which calculates an 2003-07-16 11:25:37 +00:00
gimpconvolve.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpconvolveoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpconvolveoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpdodgeburn.c added utility function gimp_paint_options_get_fade() which calculates an 2003-07-16 11:25:37 +00:00
gimpdodgeburn.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpdodgeburnoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpdodgeburnoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimperaser.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimperaser.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimperaseroptions.c removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimperaseroptions.h removed "gboolean hard" member/property... 2003-07-14 14:50:41 +00:00
gimpink-blob.c don't access the array before checking if the index is within the valid 2004-02-23 20:12:35 +00:00
gimpink-blob.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpink.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimpink.h Removed support for pluggable tools: 2003-04-15 14:20:19 +00:00
gimpinkoptions.c app/tools/gimpcurvestool.c app/tools/gimpinkoptions.c removed explicit 2004-01-29 13:59:14 +00:00
gimpinkoptions.h simplified everything a lot by merging the public GimpContextPropType enum 2003-02-09 17:32:52 +00:00
gimppaintbrush.c Get rid of the "current_context" which was in fact just a bunch of global 2004-04-14 23:37:34 +00:00
gimppaintbrush.h took the fade options out of GimpGradientOptions and added them to the new 2003-07-15 15:38:24 +00:00
gimppaintcore-kernels.h cleanup. Removed trailing whitespace in generated output. 2003-07-14 14:14:30 +00:00
gimppaintcore-stroke.c added #defines for GimpCoords' default pressure, tilt and wheel values. 2004-02-23 22:36:50 +00:00
gimppaintcore-stroke.h Fixed & cleaned up paint function registration to work without GUI. 2003-08-30 13:22:20 +00:00
gimppaintcore-undo.c Makefile.am removed this header file. 2003-03-25 16:38:19 +00:00
gimppaintcore-undo.h Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00
gimppaintcore.c tile-cache.c tile-private.h removed trailing whitespace, added some 2004-02-18 18:57:43 +00:00
gimppaintcore.h Added nomis' favorite feature ;) 2003-09-17 12:05:11 +00:00
gimppaintoptions.c added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
gimppaintoptions.h added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
gimppencil.c Argh... 2003-07-14 17:10:09 +00:00
gimppencil.h Argh... 2003-07-14 17:10:09 +00:00
gimppenciloptions.c app/paint/Makefile.am removed. 2003-07-14 15:43:21 +00:00
gimppenciloptions.h app/paint/Makefile.am removed. 2003-07-14 15:43:21 +00:00
gimpsmudge.c added utility function gimp_paint_options_get_fade() which calculates an 2003-07-16 11:25:37 +00:00
gimpsmudge.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpsmudgeoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpsmudgeoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpsourcecore.c also return the color's alpha byte if it has alpha, not only the converted 2004-01-18 13:19:59 +00:00
gimpsourcecore.h Made GimpToolOptions a GimpContext subclass and objectified all tool 2003-02-05 14:39:40 +00:00
gimpsourceoptions.c Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
gimpsourceoptions.h Added object properties for almost all tool_options values and registered 2003-02-07 17:12:21 +00:00
makefile.msc new file to keep common definitions for the msc build use common 2004-02-07 23:01:33 +00:00
paint-enums.c added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients 2003-07-22 14:24:11 +00:00
paint-enums.h Enabled skipping enum values for either the PDB or GType registration 2004-01-06 14:02:08 +00:00
paint-types.h Moved the undo step implementations to the core and pass around lots of 2003-02-14 14:14:29 +00:00