gimp/app/display
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
display-enums.c
display-enums.h
display-types.h
gimpcanvas.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpcanvas.h
gimpdisplay-foreach.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplay-foreach.h
gimpdisplay-handlers.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplay-handlers.h did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplay.c app/display/Makefile.am new files, implementing the GimpProgress interface 2006-06-29 09:42:05 +00:00
gimpdisplay.h did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayoptions.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpdisplayoptions.h
gimpdisplayshell-appearance.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-appearance.h
gimpdisplayshell-autoscroll.c renamed transform_coords() to transform_coordinate(); same for the 2006-08-09 13:15:49 +00:00
gimpdisplayshell-autoscroll.h
gimpdisplayshell-callbacks.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-08-21 17:10:29 +00:00
gimpdisplayshell-callbacks.h
gimpdisplayshell-close.c reduced precision of the display of time since the last change. 2006-04-03 10:13:41 +00:00
gimpdisplayshell-close.h
gimpdisplayshell-coords.c
gimpdisplayshell-coords.h
gimpdisplayshell-cursor.c cursors/Makefile.am cursors/cursor-corner-bottom-left.png 2006-06-02 15:23:47 +00:00
gimpdisplayshell-cursor.h
gimpdisplayshell-dnd.c added new function gimp_message() as a replacement for g_message(). Part 2006-08-08 21:06:36 +00:00
gimpdisplayshell-dnd.h
gimpdisplayshell-draw.c libgimpbase/Makefile.am libgimpbase/gimpbase.h added new files that hold 2006-08-29 14:46:32 +00:00
gimpdisplayshell-draw.h
gimpdisplayshell-filter-dialog.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-filter-dialog.h
gimpdisplayshell-filter.c
gimpdisplayshell-filter.h
gimpdisplayshell-handlers.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-handlers.h
gimpdisplayshell-layer-select.c Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpdisplayshell-layer-select.h
gimpdisplayshell-preview.c just return if gdk_drawable_get_size() returns 0 for width or height (bug 2006-08-24 09:13:29 +00:00
gimpdisplayshell-preview.h
gimpdisplayshell-progress.c app/display/Makefile.am new files, implementing the GimpProgress interface 2006-06-29 09:42:05 +00:00
gimpdisplayshell-progress.h app/display/Makefile.am new files, implementing the GimpProgress interface 2006-06-29 09:42:05 +00:00
gimpdisplayshell-render.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplayshell-render.h
gimpdisplayshell-scale.c app/actions/error-console-commands.c app/display/gimpdisplayshell-draw.c 2006-06-19 17:50:40 +00:00
gimpdisplayshell-scale.h
gimpdisplayshell-scroll.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplayshell-scroll.h
gimpdisplayshell-selection.c removed unused variables 2006-08-09 17:41:26 +00:00
gimpdisplayshell-selection.h
gimpdisplayshell-title.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplayshell-title.h
gimpdisplayshell-transform.c added new function gimp_display_shell_transform_segments(). 2006-08-09 14:05:00 +00:00
gimpdisplayshell-transform.h added new function gimp_display_shell_transform_segments(). 2006-08-09 14:05:00 +00:00
gimpdisplayshell.c Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpdisplayshell.h did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpnavigationeditor.c Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpnavigationeditor.h
gimpscalecombobox.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpscalecombobox.h
gimpstatusbar.c set the sensitivity of the cursor label before converting the coordinates 2006-07-13 08:06:06 +00:00
gimpstatusbar.h
Makefile.am app/display/Makefile.am new files, implementing the GimpProgress interface 2006-06-29 09:42:05 +00:00
makefile.msc updated 2006-08-15 15:13:08 +00:00