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 new function to set the sensitivity of an option_menu. 2002-03-17 16:35:05 +00:00
Makefile.am app/display/Makefile.am new files, implementing the GimpProgress interface 2006-06-29 09:42:05 +00:00
display-enums.c Don't store human readable and translatable enum/flag strings in 2004-10-25 17:55:25 +00:00
display-enums.h Bill Skaggs <weskaggs@primate.ucdavis.edu> 2004-06-30 15:47:32 +00:00
display-types.h app/display/gimpnavigationview.c renamed these files to... 2004-08-25 16:02:10 +00:00
gimpcanvas.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpcanvas.h Add new GimpCanvasStyle value, GIMP_CANVAS_STYLE_XOR_DOTTED. 2005-06-24 23:28:38 +00:00
gimpdisplay-foreach.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplay-foreach.h *** empty log message *** 2004-07-13 16:36:29 +00:00
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 app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
gimpdisplayshell-appearance.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-appearance.h app/actions/view-actions.c app/actions/view-commands.[ch] 2005-03-05 00:10:40 +00:00
gimpdisplayshell-autoscroll.c renamed transform_coords() to transform_coordinate(); same for the 2006-08-09 13:15:49 +00:00
gimpdisplayshell-autoscroll.h app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-callbacks.c Bill Skaggs <weskaggs@primate.ucdavis.edu> 2006-08-21 17:10:29 +00:00
gimpdisplayshell-callbacks.h Did a global s/qmask/quick-mask/: 2005-09-19 12:44:06 +00:00
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 app/display/Makefile.am new files for gimp_display_shell_close() and its 2004-07-14 00:15:57 +00:00
gimpdisplayshell-coords.c app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-coords.h app/display/Makefile.am app/display/gimpdisplayshell-autoscroll.[ch] new 2005-01-02 20:42:31 +00:00
gimpdisplayshell-cursor.c cursors/Makefile.am cursors/cursor-corner-bottom-left.png 2006-06-02 15:23:47 +00:00
gimpdisplayshell-cursor.h remember the last used GimpCursorFormat so changing the format in prefs 2004-06-14 10:19:39 +00:00
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 added new function gimp_display_shell_dnd_init() which connects all DND 2005-01-15 19:31:09 +00:00
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 app/display/gimpcanvas.c (gimp_canvas_set_custom_gc) do not drop the 2005-08-06 11:18:26 +00:00
gimpdisplayshell-filter-dialog.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-filter-dialog.h forgot to declare gimp_color_display_stack_clone(). 2003-11-21 22:52:36 +00:00
gimpdisplayshell-filter.c simplified the code 2005-02-21 01:08:44 +00:00
gimpdisplayshell-filter.h Another step towards color management: 2005-02-21 00:45:17 +00:00
gimpdisplayshell-handlers.c did a global gdisp -> display substitution. 2006-03-28 17:55:52 +00:00
gimpdisplayshell-handlers.h app/Makefile.am removed. 2001-11-10 19:10:28 +00:00
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 To be multihead safe, each new window or menu needs to be associated with 2003-11-08 15:29:47 +00:00
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 Fixed incorrect logic that caused perfect-but-slow pointer tracking to be 2004-06-13 01:37:29 +00:00
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 app/widgets/Makefile.am new files keeping the render acceleration check 2005-07-19 20:42:14 +00:00
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 Moved the GimpZoomType enum from here... 2005-09-24 17:25:36 +00:00
gimpdisplayshell-scroll.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplayshell-scroll.h fscking broken pipe... 2001-10-31 21:20:09 +00:00
gimpdisplayshell-selection.c removed unused variables 2006-08-09 17:41:26 +00:00
gimpdisplayshell-selection.h some more cleanup. 2003-11-11 15:29:47 +00:00
gimpdisplayshell-title.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimpdisplayshell-title.h massively changed: removed message_ids, the message mem chunk and all 2004-07-14 16:37:13 +00:00
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 Ported GimpNavigationView to use actions for its buttons: 2004-09-26 15:21:44 +00:00
gimpscalecombobox.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpscalecombobox.h app/display/gimpscalecombobox.[ch] pass an action label to 2005-02-09 02:33:48 +00:00
gimpstatusbar.c set the sensitivity of the cursor label before converting the coordinates 2006-07-13 08:06:06 +00:00
gimpstatusbar.h added new function gimp_statusbar_push_length(), which works exactly like 2004-11-10 01:17:40 +00:00
makefile.msc updated 2006-08-15 15:13:08 +00:00