Gimp/app/text
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 configure.in app/Makefile.am added new directory text. 2003-01-29 22:20:09 +00:00
gimp-fonts.c app/core/gimp-contexts.c app/core/gimp-documents.c 2005-11-06 22:01:25 +00:00
gimp-fonts.h Font configuration stuff: You can rescan for fonts on the fly now. A 2003-09-01 18:20:56 +00:00
gimpfont-utils.c be smarter about finding trailing numbers that look like sizes, so we 2005-02-22 01:28:45 +00:00
gimpfont-utils.h be smarter about finding trailing numbers that look like sizes, so we 2005-02-22 01:28:45 +00:00
gimpfont.c Changed GimpViewable preview rendering to have a context to get 2006-08-29 21:44:51 +00:00
gimpfont.h require gtk+ >= 2.2. 2003-03-25 22:13:10 +00:00
gimpfontlist.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimpfontlist.h added gimp_font_list_restore() which loads the fonts (not yet). 2003-03-25 22:53:10 +00:00
gimptext-bitmap.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-bitmap.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-compat.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-compat.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-parasite.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-parasite.h app/text/Makefile.am new files that load and save text layers to/from XCF. 2003-10-27 21:50:41 +00:00
gimptext-private.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-vectors.c use PANGO_DISABLE_DEPRECATED for pango < 0.13.0. 2006-05-29 20:12:52 +00:00
gimptext-vectors.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptext-xlfd.c new function to workaround pango bug #166540, by tacking on a ',' to font 2005-02-10 05:33:01 +00:00
gimptext-xlfd.h added convenience function gimp_text_set_font_from_xlfd(). Improved and 2003-06-25 11:43:36 +00:00
gimptext.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimptext.h app/text/gimptext.[ch] some infrastructure for text transforms. 2005-03-20 01:56:58 +00:00
gimptextlayer-transform.c changed all transform utilities to modify the passed transform matrix 2005-03-21 19:10:11 +00:00
gimptextlayer-transform.h app/text/gimptext.[ch] some infrastructure for text transforms. 2005-03-20 01:56:58 +00:00
gimptextlayer-xcf.c removed the return value again. 2006-04-02 15:37:25 +00:00
gimptextlayer-xcf.h added a missing call to gimp_image_flush(). 2004-03-18 15:27:23 +00:00
gimptextlayer.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimptextlayer.h app/core/gimp-gui.h app/core/gimp-utils.h app/core/gimpimage-undo.h 2005-09-27 17:31:32 +00:00
gimptextlayout-render.c app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptextlayout-render.h app/*.[ch] converted tabs to spaces. 2006-04-12 12:49:29 +00:00
gimptextlayout.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimptextlayout.h app/text/Makefile.am app/text/gimptextlayout-private.h new files that 2003-07-06 18:43:58 +00:00
gimptextundo.c removed erroneous semicolon after G_DEFINE_TYPE macros. 2006-05-15 09:46:31 +00:00
gimptextundo.h removed member "guint time"... 2004-07-12 17:10:34 +00:00
Makefile.am app/base/Makefile.am app/composite/*akefile.am app/config/*akefile.am 2005-02-27 13:22:01 +00:00
makefile.msc TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs 2005-02-19 00:50:36 +00:00
text-enums.c Don't store human readable and translatable enum/flag strings in 2004-10-25 17:55:25 +00:00
text-enums.h app/text/text-enums.h moved enum to libgimpbase (from app/text and 2005-01-23 00:58:22 +00:00
text-types.h added gimp_undo_type_to_name() a similar function used to live in 2004-03-21 23:14:21 +00:00