gimp/app/vectors
Michael Natterer b53aa45a76 Changed GimpViewable preview rendering to have a context to get
2006-08-29  Michael Natterer  <mitch@gimp.org>

	Changed GimpViewable preview rendering to have a context to get
	FG/BG/whatever from. Use the context to enable dynamic FG/BG
	colors in gradients. Fixes bug #127676 and bug #352214. Addresses
	bug #128367 (doesn't fix it because there's no loading/saving and
	no GUI yet).

	* app/core/core-enums.[ch]: added enum GimpGradientColor to enable
	specifying gradient colors in terms of foreground and background.

	* app/core/gimpgradient.[ch]: added color_type members to the
	GimpGradientSegment struct and honor them in
	gimp_gradient_get_color_at(). Added GimpContext parameters to all
	functions which finally call get_color_at().

	* app/core/gimp-gradients.c: use the new method to implement the
	builtin gradients.

	* app/core/gimpviewable.[ch]: added GimpContext parameters to all
	get_preview() and get_pixbuf() functions.

	* app/core/gimpbrush.c
	* app/core/gimpbuffer.c
	* app/core/gimpdrawable-preview.[ch]
	* app/core/gimpgradient.c
	* app/core/gimpimage-preview.[ch]
	* app/core/gimpimagefile.c
	* app/core/gimppalette.c
	* app/core/gimppattern.c
	* app/core/gimpundo.[ch]
	* app/text/gimpfont.c
	* app/vectors/gimpvectors-preview.[ch]: changed ::get_preview()
	and ::get_pixbuf() implementations accordingly.

	* app/core/gimpdrawable-blend.c
	* app/core/gimppalette-import.[ch]
	* app/dialogs/dialogs-constructors.c
	* app/dialogs/palette-import-dialog.c
	* app/dialogs/resize-dialog.c
	* app/display/gimpdisplayshell-layer-select.c
	* app/display/gimpdisplayshell.c
	* app/display/gimpnavigationeditor.c
	* app/paint/gimppaintoptions.c
	* app/tools/gimpeditselectiontool.c
	* app/tools/gimptexttool.c
	* app/actions/gradient-editor-commands.c
	* app/widgets/gimpaction.c
	* app/widgets/gimpbrusheditor.[ch]
	* app/widgets/gimpbufferview.c
	* app/widgets/gimpcellrendererviewable.c
	* app/widgets/gimpchanneltreeview.c
	* app/widgets/gimpclipboard.c
	* app/widgets/gimpcoloreditor.c
	* app/widgets/gimpcomponenteditor.c
	* app/widgets/gimpcontainerbox.c
	* app/widgets/gimpcontainercombobox.c
	* app/widgets/gimpcontainereditor.c
	* app/widgets/gimpcontainerentry.c
	* app/widgets/gimpcontainergridview.c
	* app/widgets/gimpcontainertreeview.[ch]
	* app/widgets/gimpdataeditor.[ch]
	* app/widgets/gimpdevicestatus.c
	* app/widgets/gimpdnd.[ch]
	* app/widgets/gimpdrawabletreeview.c
	* app/widgets/gimpfiledialog.c
	* app/widgets/gimpgradienteditor.[ch]
	* app/widgets/gimpgradientselect.c
	* app/widgets/gimpitemtreeview.c
	* app/widgets/gimplayertreeview.c
	* app/widgets/gimppaletteeditor.[ch]
	* app/widgets/gimppropwidgets.[ch]
	* app/widgets/gimpselectioneditor.c
	* app/widgets/gimpthumbbox.[ch]
	* app/widgets/gimptoolbox-image-area.c
	* app/widgets/gimptoolbox-indicator-area.c
	* app/widgets/gimptooloptionseditor.c
	* app/widgets/gimpundoeditor.c
	* app/widgets/gimpvectorstreeview.c
	* app/widgets/gimpview-popup.[ch]
	* app/widgets/gimpview.[ch]
	* app/widgets/gimpviewablebutton.c
	* app/widgets/gimpviewabledialog.c
	* app/widgets/gimpviewrenderer.[ch]
	* app/widgets/gimpviewrenderer-frame.c
	* app/widgets/gimpviewrendererbrush.c
	* app/widgets/gimpviewrendererbuffer.c
	* app/widgets/gimpviewrendererdrawable.c
	* app/widgets/gimpviewrenderergradient.c
	* app/widgets/gimpviewrendererimage.c
	* tools/pdbgen/pdb/drawable.pdb
	* tools/pdbgen/pdb/gradient.pdb
	* tools/pdbgen/pdb/gradients.pdb
	* tools/pdbgen/pdb/image.pdb: added tons of GimpContext members
	and parameters, implement GimpDocked::set_context() in many
	widgets. Pass these locally remembered contexts to GimpViewable
	functions. Did some minor cleanups on the way. There are still
	some minor FIXMEs around where the code uses a NULL context (which
	is allowed by the APIs)

	* app/pdb/drawable_cmds.c
	* app/pdb/gradient_cmds.c
	* app/pdb/gradients_cmds.c
	* app/pdb/image_cmds.c: regenerated.
2006-08-29 21:44:51 +00:00
..
.cvsignore app/vectors/Makefile removed. 2002-02-22 12:26:41 +00:00
Makefile.am Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-03-09 16:58:54 +00:00
gimpanchor.c Made gimp_vectors_compat_get_points accept more paths gracefully. It now 2003-09-09 15:46:59 +00:00
gimpanchor.h Made gimp_vectors_compat_get_points accept more paths gracefully. It now 2003-09-09 15:46:59 +00:00
gimpbezierstroke.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpbezierstroke.h extended gimp_bezier_stroke_new_ellipse() with an "angle" parameter. 2005-12-29 16:05:31 +00:00
gimpstroke.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpstroke.h tools/pdbgen/pdb/image.pdb Added new functions for the vectors PDB API. 2005-12-28 21:24:12 +00:00
gimpvectors-compat.c did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
gimpvectors-compat.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
gimpvectors-export.c app/config/gimpconfig-file.c app/file/file-utils.c app/gui/themes.c 2005-02-07 01:38:18 +00:00
gimpvectors-export.h removed the GError parameter from gimp_vectors_export_string() and 2003-12-21 11:52:20 +00:00
gimpvectors-import.c fix the import of svg circles. 2006-02-22 13:12:48 +00:00
gimpvectors-import.h renamed the SVG related functions so that they deal with an anonymous data 2004-06-30 11:57:17 +00:00
gimpvectors-preview.c Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpvectors-preview.h Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpvectors-warp.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-03-09 16:58:54 +00:00
gimpvectors-warp.h Bill Skaggs <weskaggs@primate.ucdavis.edu> 2005-03-09 16:58:54 +00:00
gimpvectors.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpvectors.h did a global gimage -> image substitution. 2006-03-28 17:08:36 +00:00
makefile.msc build menus with nmake, too menus/Makefile.am : added to EXTRA_DIST 2005-04-24 15:39:15 +00:00
vectors-types.h app/display/display-types.h app/tools/tools-types.h 2003-09-07 10:29:10 +00:00