1. 25 Oct, 2008 1 commit
    • Michael Natterer's avatar
      More merging from SOC 2006's vector layer branch: · 39af762f
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	More merging from SOC 2006's vector layer branch:
      
      	* app/core/gimpitem.[ch]: add "gboolean push_undo" to
      	GimpItem::stroke().
      
      	* app/core/gimpdrawable-stroke.[ch]
      	* app/paint/gimppaintcore-stroke.[ch]
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_finish): add
      	"push_undo" parameters here too.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/dialogs/stroke-dialog.c
      	* app/tools/gimppainttool.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE all over the place.
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paint-tools-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27398
      39af762f
  2. 17 Jul, 2008 1 commit
    • Sven Neumann's avatar
      removed 'use_pressure' field from GimpPaintCore. · caa4c529
      Sven Neumann authored
      2008-07-17  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed 'use_pressure' field 
      from
      	GimpPaintCore.
      	
      	* app/paint/gimppaintoptions.[ch]: removed 'use_pressure' 
      parameter.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=26225
      caa4c529
  3. 31 Mar, 2007 1 commit
  4. 09 Mar, 2007 1 commit
    • Michael Natterer's avatar
      include "libgimpmath/gimpmathtypes.h" instead of "libgimpmath/gimpmath.h". · 83d3a750
      Michael Natterer authored
      2007-03-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: include "libgimpmath/gimpmathtypes.h"
      	instead of "libgimpmath/gimpmath.h".
      
      	* app/core/gimpbrush.h
      	* app/paint/gimppaintcore.h
      	* app/paint/gimpperspectiveclone.h
      	* app/text/gimptext.h
      	* app/tools/gimptransformtool.h: include gimpvector.h and
      	gimpmatrix.h explicitely where they are needed in public structs.
      
      	* app/*/*.c
      	* tools/pdbgen/pdb/paths.pdb: include "libgimpmath/gimpmath.h"
      	where needed.
      
      	* app/pdb/paths_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22084
      83d3a750
  5. 03 Feb, 2007 1 commit
    • Michael Natterer's avatar
      app/paint/gimppaintcore-undo.[ch] removed... · 792ba898
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/paint/gimpink-undo.[ch]: removed...
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h
      	* app/paint/gimppaintcoreundo.[ch]
      	* app/paint/gimpinkundo.[ch]: ...and added as proper undo classes.
      
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimpink.c: push undos using the new classes.
      
      
      svn path=/trunk/; revision=21842
      792ba898
  6. 09 Dec, 2006 1 commit
  7. 26 Sep, 2006 1 commit
    • Michael Natterer's avatar
      added GError** parameter to GimpPaintCore::start(). · 1b1299af
      Michael Natterer authored
      2006-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: added GError** parameter to
      	GimpPaintCore::start().
      
      	* app/tools/gimppainttool.c (button_press): display the error in
      	the statusbar.
      
      	* app/paint/gimppaintcore-stroke.c: pass a NULL error, effectively
      	swallowing mssages. Will fix that later.
      
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpsourcecore.c: changed accordingly. Set the error
      	instead of calling g_message().
      
      	* app/paint/gimpheal.c
      	* app/paint/gimpperspectiveclone.c: implement start() and bail out
      	early on indexed drawables instead of showing a g_message() in
      	other functions that are called later.
      
      	* app/tools/gimptool.[ch]: added GError** to GimpTool::initialize().
      
      	* app/tools/gimptool.c (gimp_tool_initialize): display the error
      	in the statusbar. Keep the external API GError-free.
      
      	* app/tools/gimprectangletool.[ch]: added GError** to
      	gimp_rectangle_tool_initialize().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c: changed accordingly. Set the
      	errors in initialize() instead of using gimp_message().
      
      	* app/tools/gimpblendtool.c: implement initialize() and bail out
      	early on indexed images instead of showing a gimp_message() in
      	button_press().
      1b1299af
  8. 03 Sep, 2006 1 commit
    • Sven Neumann's avatar
      added construct-only property "undo-desc". Use this when pushing an undo · a44d24cc
      Sven Neumann authored
      2006-09-03  Sven Neumann  <sven@gimp.org>
      
              * app/paint/gimppaintcore.[ch]: added construct-only property
              "undo-desc". Use this when pushing an undo instead of attempting
              an unsuccessful lookup of the GimpPaintInfo object.
      
              * tools/pdbgen/pdb/paint_tools.pdb
              * app/tools/gimppainttool.c: use paint_info->blurb as undo
              description when constructing the paint core.
      
              * app/pdb/paint_tools_cmds.c: regenerated.
      a44d24cc
  9. 12 Apr, 2006 1 commit
  10. 28 Mar, 2006 1 commit
  11. 24 Sep, 2005 1 commit
  12. 28 Aug, 2005 1 commit
    • Michael Natterer's avatar
      Immplement "Sample Merged" for the clone tool. Fixes bug #123627. · 26374e81
      Michael Natterer authored
      2005-08-28  Michael Natterer  <mitch@gimp.org>
      
      	Immplement "Sample Merged" for the clone tool. Fixes bug #123627.
      
      	* app/paint/gimppaintcore.[ch] (struct GimpPaintCore): added
      	members "saved_proj_tiles" which stores the unmodified projection,
      	"orig_proj_buf" which stores the unmodified temp paint application
      	buf and "use_saved_proj" which controls if all the additional
      	stuff should be allocated and managed.
      
      	(gimp_paint_core_start): allocate the saved_proj_tiles if needed.
      
      	(gimp_paint_core_get_orig_proj): new function like
      	gimp_paint_core_get_orig_image() which returns unmodified
      	projection pixels for paint application.
      
      	(gimp_paint_core_validate_saved_proj_tiles): new function like
      	gimp_paint_core_validate_undo_tiles() which copies the tiles that
      	will be dirtied to saved_proj_tiles.
      
      	(gimp_paint_core_paste): call above save_proj_tiles() so
      	projection tiles are saved before dirtying them.
      
      	* app/paint/gimpclone.[ch]: replaced member src_drawable by
      	src_pickable and use the image's projection if sample_merged it
      	TRUE. Adjust src offsets accordingly and use GimpPaintCore's new
      	get_orig_proj() API to get the src pixels.
      
      	* app/paint/gimpcloneoptions.[ch]: added boolean "sample_merged"
      	property.
      
      	* app/tools/gimpclonetool.c: follow GimpClone's src_drawable ->
      	src_pickable change.
      
      	(gimp_clone_tool_button_press): set the paint_core's
      	"use_saved_proj" boolean before chaining up.
      
      	(gimp_clone_options_gui): add a "Sample Merged" toggle button.
      26374e81
  13. 14 Jan, 2005 1 commit
    • Michael Natterer's avatar
      added GIMP_UNDO_INK. · d4177c88
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added GIMP_UNDO_INK.
      
      	* app/paint/gimppaintcore.[ch]: added virtual function
      	GimpPaintCore::push_undo() and call it.
      
      	* app/paint/gimppaintcore-undo.[ch]: made it the default
      	implementation.
      
      	* app/paint/gimpink-blob.[ch]: added blob_duplicate().
      
      	* app/paint/gimpink.[ch]: added a "start_blob" (just like
      	GimpPaintCore::start_coords) which gets set whenever we start a
      	new stroke or line. Removed ink->lastx and ink->lasty because
      	they are the same as paint_core->last_coords.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-undo.[ch]: new files implementing an
      	undo step for ink which restores the last blob used along
      	with the whole ink state. Fixes bug #163670.
      d4177c88
  14. 22 Aug, 2004 1 commit
    • Sven Neumann's avatar
      app/tools/Makefile.am added gimp_tool_motion_constrain(), · 0c2d88e9
      Sven Neumann authored
      2004-08-22  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/tools-utils.[ch]: added gimp_tool_motion_constrain(),
      
      	* app/paint/gimppaintcore.[ch]: removed gimp_paint_core_constrain().
      
      	* app/tools/gimppainttool.c: changed accordingly.
      
      	* app/tools/gimpblendtool.[ch]: use gimp_tool_motion_constrain()
      	instead of duplicating that functionality.
      
      	* app/tools/gimpmeasuretool.c: use gimp_tool_motion_constrain()
      	instead of implementing completely different constraints.
      0c2d88e9
  15. 19 Jul, 2004 1 commit
    • Michael Natterer's avatar
      removed enum GimpPaintCoreState. · 85c2b2dd
      Michael Natterer authored
      2004-07-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.h: removed enum GimpPaintCoreState.
      
      	* app/paint/paint-enums.h: added enum GimpPaintState (with values
      	that have a name space).
      
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      	* app/tools/gimpinktool.c: removed unused #include.
      85c2b2dd
  16. 14 Jun, 2004 2 commits
    • Michael Natterer's avatar
      removed PRETRACE_PAINT and POSTTRACE_PAINT from the GimpPaintCoreState · 587e070f
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed PRETRACE_PAINT and
      	POSTTRACE_PAINT from the GimpPaintCoreState enum. Removed
      	"gboolean traces_on_window" from GimpPaintCoreClass.
      
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpink.c
      	* app/tools/gimpclonetool.c: changed accordingly.
      
      	* app/tools/gimppainttool.c: ditto. Show the brush outline
      	while painting. Fixes bug #118348.
      587e070f
    • Michael Natterer's avatar
      added new virtual function GimpPaintCore::post_paint() and call it after · 3e269083
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: added new virtual function
      	GimpPaintCore::post_paint() and call it after calling
      	GimpPaintCore::paint().
      
      	* app/paint/gimpbrushcore.[ch]: renamed brush_core->grr_brush
      	to brush_core->main_brush and reset brush_core->brush
      	to brush_core->main_brush in GimpPaintCore::post_paint().
      
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/tools/gimppainttool.c: removed all code which restores
      	the brush_core's old brush after painting since post_paint()
      	does this automatically now.
      
      	* app/paint/gimpclone.[ch]: moved static variables to the
      	GimpClone struct.
      3e269083
  17. 28 May, 2004 1 commit
    • Michael Natterer's avatar
      app/paint/gimpbrushcore.c app/paint/gimpdodgeburn.c · afb57d59
      Michael Natterer authored
      2004-05-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.[ch]
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: code review / cleanup.
      afb57d59
  18. 27 May, 2004 1 commit
    • Michael Natterer's avatar
      removed enum GimpPaintCoreFlags and member GimpPaintCore::flags. Added · 23cfde41
      Michael Natterer authored
      2004-05-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed enum GimpPaintCoreFlags
      	and member GimpPaintCore::flags. Added "gboolean traces_on_window"
      	to GimpPaintCoreClass (defaults to FALSE).
      
      	* app/paint/gimpclone.c: set traces_on_window = TRUE.
      
      	* app/paint/gimpbrushcore.[ch]: added
      	"gboolean handles_changing_brush" to GimpBrushCoreClass (defaults
      	to FALSE).
      
      	* app/paint/gimpclone.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c: set handles_changing_brush = TRUE.
      
      	* app/tools/gimppainttool.c: changed accordingly.
      23cfde41
  19. 26 May, 2004 4 commits
    • Michael Natterer's avatar
      added "guint32 time" parameters to GimpPaintCore::paint() and · b9d74b9a
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: added "guint32 time" parameters
      	to GimpPaintCore::paint() and ::interpolate().
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c: changed accordingly.
      
      	* app/paint/gimpink.c: ditto and use the passed time instead of
      	hardcoded dummy values.
      
      	* app/paint/gimppaintcore-stroke.c: pass '0' as time.
      
      	* app/tools/gimppainttool.c: pass the GdkEvent time.
      b9d74b9a
    • Michael Natterer's avatar
      app/paint/gimpbrushcore.h some cleanup. · 94d256a1
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.h
      	* app/paint/gimppaintcore.h: some cleanup.
      94d256a1
    • Michael Natterer's avatar
      replaced the "MaskBuf *paint_mask" parameters by "PixelRegion · 06a976ce
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_paste)
      	(gimp_paint_core_replace): replaced the "MaskBuf *paint_mask"
      	parameters by "PixelRegion *mask_bufPR", so subclasses can pass in
      	any kind of paint_mask buffer and are not restricted to MaskBufs.
      
      	Also removes implicit knowledge about the MaskBuf originating from
      	a brush in paint_mask_to_canvas_buf() and _to_canvas_tiles() which
      	don't need to offset the mask by width/2 height/2 any more.
      
      	Made gimp_paint_core_validate_undo_tiles() and
      	gimp_paint_core_validate_canvas_tiles() protected functions.
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_paste_canvas)
      	(gimp_brush_core_replace_canvas): create correctly positioned
      	PixelRegions from the MaskBufs before passing them to the
      	paint_core.
      06a976ce
    • Michael Natterer's avatar
      removed "gdouble scale" parameter and added "GimpPaintOptions" in · 1bdb42bc
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed "gdouble scale" parameter
      	and added "GimpPaintOptions" in GimpPaintCore::get_paint_area().
      	Check if virtual functions exist befoe calling them.
      
      	* app/paint/gimpbrushcore.[ch]: added "gdouble scale" to GimpBrushCore
      	and "gboolean use_scale" to GimpBrushCoreClass (defaults to TRUE).
      	Set scale from paint_options in GimpPaintCore::get_paint_area().
      	Removed "scale" parameter from gimp_brush_core_paste_canvas()
      	and _replace_canvas().
      
      	* app/paint/gimpsmudge.c (gimp_smudge_class_init): set use_scale
      	to FALSE.
      
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c: removed all scale calculations and
      	simply pass paint_options to GimpPaintCore::get_paint_area().
      1bdb42bc
  20. 25 May, 2004 1 commit
    • Michael Natterer's avatar
      app/paint/Makefile.am app/paint/gimpbrushcore-kernels.h new GimpPaintCore · 9a41a73d
      Michael Natterer authored
      2004-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimpbrushcore-kernels.h
      	* app/paint/gimpbrushcore.[ch]: new GimpPaintCore subclass
      	containing all the brush painting specific stuff.
      
      	* app/paint/gimppaintcore-kernels.h: removed this file.
      
      	* app/paint/gimppaintcore.[ch]: removed all brush stuff.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: changed accordingly. Derive all
      	classes which used to derive directly from GimpPaintCore from
      	GimpBrushCore now. Lots of cleanup.
      
      	* app/paint/paint-types.h
      	* app/paint/gimp-paint.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/tools/gimppainttool.c
      	* tools/kernelgen.c: changed accordingly.
      9a41a73d
  21. 24 May, 2004 1 commit
    • Sven Neumann's avatar
      fixed a compiler warning. · 1c860eb1
      Sven Neumann authored
      2004-05-24  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/maze/maze_face.c: fixed a compiler warning.
      
      2004-05-24  Sven Neumann  <sven@gimp.org>
      
      	Applied a patch from Philip Lafleur (bug #142808):
      
      	* app/paint/gimppaintcore.h: define PRESSURE_SCALE to 1.5
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c: use the PRESSURE_SCALE constant.
      1c860eb1
  22. 17 Sep, 2003 1 commit
    • Michael Natterer's avatar
      Added nomis' favorite feature ;) · 2ce758b8
      Michael Natterer authored
      2003-09-17  Michael Natterer  <mitch@gimp.org>
      
      	Added nomis' favorite feature ;)
      
      	* app/paint/gimppaintcore.[ch]: added gimp_paint_core_cancel()
      	which can be called instead of gimp_paint_core_finish().
      	It simply copies core->undo_tiles back to the drawable instead of
      	pushing them to the undo stack.
      
      	* app/tools/gimppainttool.c (gimp_paint_core_button_release): call
      	_cancel() instead of _finish() if the right mouse button is
      	pressed.
      2ce758b8
  23. 26 Jul, 2003 1 commit
    • Hans Breuer's avatar
      renamed GimpOrientationType with Compat postfix to avoid name clashing · b70d6c33
      Hans Breuer authored
      2003-07-26  Hans Breuer  <hans@breuer.org>
      
      	* libgimp/gimpcompat.h : renamed GimpOrientationType
      	with Compat postfix to avoid name clashing when using
      	this header together with libgimp/gimpenums.h
      
      	* app/composite/makefile.msc : (new file)
      	  **/makefile.msc : updated
      
      	* libgimp/gimp.c : use static defined _tile<widht|height>
      	in this file instead of function call
      
      	* libgimp/gimp.def libgimp/libgimpui.def : moved from former
      	to latter : gimp_<brush|font|gradient|pattern>_select_<new|destroy>
      	added to former gimp_<brushes|gradients|patterns>_popup
      
      	* app/paint/gimppaintcore.h : removed double semicolon
      	which gave msvc error C2059: syntax error : ';'
      
      	* libgimpbase/gimpwin32-io.h : (new file) compatibilty defines
      	which were spread over multiple files to make up mostly for
      	missing unistd.h
      
      	* app/base/tile-swap.c app/core/gimpimagefile.c
      	  libgimpbase/gimpdatafiles.c
      	  plug-ins/FractalExplorer/FractalExplorer.c : use new header
      
      	* plug-ins/gflare/gflare.c
      	  plug-ins/flame/flame.c
      	  plug-ins/FractalExplorer/Dialogs.c :
      	removed #ifdef G_OS_WIN32 special casing, not needed anymore
      	due to g_file_test() usage
      
      	* app/text/*.* : changes required for build with PangoWin32,
      	but not commited ...
      b70d6c33
  24. 24 Jul, 2003 1 commit
    • Michael Natterer's avatar
      removed the brush outline members since we have no chance to really cache · 827c3f37
      Michael Natterer authored
      2003-07-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimppainttool.[ch]: removed the brush outline members
      	since we have no chance to really cache them without duplicating
      	GimpPaintCore's brush change notification code.
      
      	* app/paint/gimppaintcore.[ch]: added the outline here and really
      	cache it this time. The paint_core doesn't create or use the
      	outline but frees and NULLifies it whenever the brush changes.
      827c3f37
  25. 22 Jul, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients · 075195d1
      Michael Natterer authored
      2003-07-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpgradient.[ch]: added "gboolean reverse" to
      	gimp_gradient_get_color_at() so all gradients can be used
      	reversed.
      
      	* app/core/gimpdrawable-blend.[ch] (gimp_drawable_blend)
      	* app/core/gimppalette-import.[ch] (gimp_palette_import_from_gradient):
      	added "gboolean reverse".
      
      	* app/paint/paint-enums.[ch]: removed enum GimpGradientRepeatMode
      	since it is identical to GimpRepeatMode, except for the now
      	obsolete ONCE_BACKWARD value.
      
      	* app/paint/gimppaintcore.[ch]: removed
      	gimp_paint_core_get_color_from_gradient()...
      
      	* app/paint/gimppaintoptions.[ch]: ...and added
      	gimp_paint_options_get_gradient_color(), which is much more
      	general. Added a "reverse" property to GimpGradientOptions and
      	changed the type of the "repeat" property to GimpRepeatMode.
      
      	* app/paint/gimppaintbrush.c: use
      	gimp_paint_options_get_gradient_color().
      
      	* app/tools/gimpblendoptions.[ch]: removed the "repeat" property
      	since it is in the parent class now.
      
      	* app/gui/gradient-select.c
      	* app/gui/palette-import-dialog.c
      	* app/widgets/gimpgradienteditor.c
      	* app/tools/gimpblendtool.c
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* app/tools/gimppaintoptions-gui.c: added a "Reverse" toggle right
      	of the gradient preview.
      
      	* app/widgets/gimppreviewrenderergradient.[ch]: added "gboolean
      	reverse" member and gimp_preview_renderer_gradient_set_reverse()
      	API.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: fixed the paintbrush invoker
      	to set GimpPaintOption's "use-fade" and "use-gradient" properties
      	correctly.
      
      	* app/pdb/gradients_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimp/gimpmisctools_pdb.[ch]
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: removed GimpGradientPaintMode
      	here too since it was only exported accidentially (it's not used
      	by any external API).
      
      	* plug-ins/script-fu/scripts/3dTruchet.scm
      	* plug-ins/script-fu/scripts/alien-glow-arrow.scm
      	* plug-ins/script-fu/scripts/alien-glow-bar.scm
      	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
      	* plug-ins/script-fu/scripts/alien-glow-button.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic1-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/beveled-button.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/burn-in-anim.scm
      	* plug-ins/script-fu/scripts/coffee.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
      	* plug-ins/script-fu/scripts/gradient-example.scm
      	* plug-ins/script-fu/scripts/pupi-button.scm
      	* plug-ins/script-fu/scripts/rendermap.scm
      	* plug-ins/script-fu/scripts/sphere.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm
      	* plug-ins/script-fu/scripts/title-header.scm
      	* plug-ins/script-fu/scripts/weave.scm: pass "reverse" to
      	gimp_blend(). Pass FALSE in most cases and added script
      	parameters were it makes sense.
      075195d1
  26. 14 Jul, 2003 1 commit
    • Michael Natterer's avatar
      removed "gboolean hard" member/property... · 78262ef7
      Michael Natterer authored
      2003-07-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimperaseroptions.[ch]: removed "gboolean hard"
      	member/property...
      
      	* app/paint/gimppaintoptions.[ch]: ...and added it here. Added
      	gimp_paint_options_get_brush_mode() utility function.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.h
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c: use the new utility funtion where
      	appropriate. Removed trailing whitespace.
      
      	* app/tools/gimpdrawtool.[ch] (gimp_paint_tool_draw_boundary):
      	changed offset parameters from gint to gdouble so we can show the
      	brush preview at sub-pixel positions.
      
      	* app/tools/gimppainttool.c: use sub-pixel coordinates for the
      	brush preview if paint_options->hard is FALSE (doesn't work for
      	the pencil yet).
      
      	The new brush preview unveiled that the positioning of even-sized
      	brushes if off by 0.5 for soft brush application mode and off by
      	1.0 for hard application mode:
      
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_subsample_mask):
      	offset painting by 0.5 pixels on the brushes' even sized axes by
      	shuffling the subsample matrices around.
      
      	Added "subsampling" for HARD brush application mode since a pixel
      	of an even sized brush can snap to up to four different image
      	pixels depending on the sub-pixel coordinates of the stroke.
      78262ef7
  27. 17 Jun, 2002 1 commit
    • Michael Natterer's avatar
      Separated tool_options creation from tool registration so we don't · a3f44d8b
      Michael Natterer authored
      2002-06-17  Michael Natterer  <mitch@gimp.org>
      
      	Separated tool_options creation from tool registration so we
      	don't implicitly create widgets before gui_init():
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptionsNewFunc
      	typedef here...
      
      	* app/core/core-types.h: ...and added it here.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimptoolinfo.[ch]: added a GimpToolOptionsNewFunc
      	pointer to remember the constructor. Fixed the finalize() method
      	(bug was never noticed because we leaked all tool infos)
      
      	* app/tools/tool_manager.[ch]: moved tool_options creation to the
      	new function tool_manager_restore(). Unref the tool infos after
      	adding them to their container. Added "brush" and "gradient" to
      	the context properties which are defined for tool contexts.
      
      	* app/app_procs.c: call tool_manager_restore() after gui_init().
      
      	* app/gui/gui.c: removed the hack introduced recently and call
      	render_setup() in gui_init() again, not in gui_themes_init().
      
      	Use the correct contexts now that they are properly initialized
      	at the time of tool_options creation:
      
      	* app/tools/gimpblendtool.c: use tool_info->context, not
      	gimp_get_user_context() to get/set the tool's gradient.
      
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_start): added a
      	GimpPaintOptions paramater and get the brush to use from
      	paint_options->context (instead of gimp_get_current_context()).
      
      	* app/paint/gimppaintcore-stroke.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      	* app/tools/paint_options.c: added a brush preview to the paint
      	options.
      a3f44d8b
  28. 12 Jun, 2002 1 commit
  29. 05 May, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · c86ca2da
      Michael Natterer authored
      2002-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphelp.[ch]: removed...
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp.[ch]: ...and added here.
      
      	* app/widgets/widgets-enums.[ch]: added GimpHelpBrowserType here
      	as registered enum. Added an evil hack with GimpCursorType so
      	app/config/gimpguiconfig.h can include this file.
      
      	* app/widgets/gimpcursor.c: added an assertion because of the
      	changed GimpCursorType.
      
      	* app/config/gimpguiconfig.[ch]: added a property for the help
      	browser type.
      
      	* app/gimprc.c
      	* app/libgimp_glue.c
      	* app/gui/preferences-dialog.c
      	* tools/pdbgen/pdb/help.pdb
      
      	* app/pdb/help_cmds.c: regenerated.
      
      	Some nav_window cleanup before chopping:
      
      	* app/nav_window.[ch]: removed the old preview code and use
      	GimpNavigationPreviews only. Namespaceified all functions. Speak
      	in terms of GimpDisplayShell, not GimpDisplay. Lots of internal
      	cleanup.
      
      	* app/gui/gui-types.h: removed NadiagtionDialog here...
      
      	* app/display/display-types.h: ...and added it here.
      
      	* app/display/gimpdisplayshell-callbacks.[ch]: added a callback
      	for the navigation button and call nav_window_show_popup() from there.
      
      	* app/display/gimpdisplayshell.c: free shell->nav_dialog
      	unconditionally, connect to the new callback.
      
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/gui/view-commands.c: changed accordingly.
      
      	* app/widgets/gimppreview.c (gimp_preview_set_viewable): the
      	assertion introduced recently was too tight, breaking
      	GimpNavigationPreview. Changed it to do an "is a" check, not exact
      	preview type matching.
      
      	* app/widgets/gimpimagepreview.c: added quick-hack support for
      	xres != yres.
      
      	* app/widgets/gimpnavigationpreview.[ch]: made
      	gimp_navigation_preview_grab_pointer() public so the nav_window
      	can call it.
      
      	Unrelated:
      
      	* app/display/gimpdisplay.c: removed the gui/ dependency from this
      	file by removing info_window stuff.
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_flush): update
      	the info_window here.
      
      	* app/gui/dialogs-constructors.c (dialogs_indexed_palette_new): call
      	gimp_dockable_set_context() like all other constructors.
      
      	* app/undo.c
      	* app/paint/gimppaintcore.h: some more include cleanup.
      c86ca2da
  30. 19 Mar, 2002 1 commit
    • Sven Neumann's avatar
      app/paint/Makefile.am app/paint/paint-enums.h split enums into their own · 9ea91143
      Sven Neumann authored
      2002-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/paint-enums.h
      	* app/paint/paint-types.h: split enums into their own file and
      	namespacified them.
      
      	* app/tools/Makefile.am
      	* app/tools/tools-enums.h
      	* app/tools/tools-types.h: split enums into their own file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/paint_options.c
      	* plug-ins/gfig/gfig.c: changed accordingly.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: added compatibility defines for
      	changed enums.
      
      	* tools/pdbgen/Makefile.am: updated list of headers to parse for enums.
      
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/paint_tools.pdb: regenerated.
      9ea91143
  31. 03 Mar, 2002 1 commit
    • Michael Natterer's avatar
      Use gdouble in a [0.0..1.0] range for opacity values in the whole core's · ce643d27
      Michael Natterer authored
      2002-03-03  Michael Natterer  <mitch@gimp.org>
      
      	Use gdouble in a [0.0..1.0] range for opacity values in the whole
      	core's API. Convert them using (opacity * 255.999) when passing
      	them to base/ and paint-funcs/
      
      	Affected functions:
      
      	* app/core/gimpchannel.[ch]: gimp_channel_[set|get]_opacity()
      	* app/core/gimpimage.[ch]: gimp_image_[apply|replace]_image()
      	* app/paint/gimppaintcore.[ch]: gimp_paint_core_[paste|replace]_canvas()
      
      	* app/core/core-types.h: added defines GIMP_OPACITY_TRANSPARENT
      	and GIMP_OPACITY_OPAQUE, just like the ones from
      	paint-funcs/paint-funcs-types.h
      
      	* app/gimprc.c
      	* app/image_map.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimplayer.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpinktool.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimppreview.c
      	* app/xcf/xcf-load.c: changed accordingly, use the new constants.
      ce643d27
  32. 23 Feb, 2002 1 commit
    • Michael Natterer's avatar
      General undo cleanup: · a3c3e7d3
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	General undo cleanup:
      
      	* app/undo.[ch]: made all undo structs private. Changed all
      	undo_push_foo() functions to take useful parameters instead of
      	"gpointer foo_ptr" and create the undo structs internally.
      	Renamed lots of functions so they are more self-explanatory
      	(like undo_push_gimage_mod -> undo_push_image_size). Added some
      	undo functions (channel reordering is undoable now).  Never pass
      	in a UndoType, as they are reseved for groups now (see below).
      	Lots of cleanup and stuff...
      
      	* app/undo_types.h: is a private header now which defines "enum
      	UndoImplType" which is reserved for actual undo operations.
      	All enum values are named "FOO_UNDO".
      
      	* app/core/core-types.h: added the "UndoType" enum here and don't
      	include "undo_types.h" any more. The UndoType values are all
      	named "FOO_UNDO_GROUP" and are reserved for undo groups.
      
      	The ID space of actual undo operations and undo groups
      	is now strictly disjunct.
      
      	* app/core/gimpchannel.h
      	* app/core/gimpimage.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/paint/gimppaintcore.h
      	* app/tools/gimptransformtool.h: removed undo stuct definitions.
      
      	* app/undo_history.c
      	* app/path_transform.h
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      
      	* app/core/gimpimage.[ch]: added infrastructure for holding a
      	GimpList of GimpVectors objects. The API is the same as for layers
      	and channels. Not used yet.
      a3c3e7d3
  33. 21 Feb, 2002 2 commits
    • Michael Natterer's avatar
      Made the paint tool PDB wrappers work again (a bit at least...) · 9c510759
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Made the paint tool PDB wrappers work again (a bit at least...)
      
      	* app/Makefile.am: changed linking order. libtool sucks.
      
      	* app/undo.c: check if active_tool is a GimpPaintTool before
      	casting it.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h: added new files/types.
      
      	* app/paint/gimppaintoptions.[ch]: new files cut out of
      	tools/paint_options.h. Prefixed everything with "Gimp". There is
      	still GtkWidget* cruft hanging around in the structs...
      
      	* app/paint/gimppaintcore-stroke.[ch]: utility function
      	which paints a stroke array. Needed for the PDB wrappers.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: added *_options_new() functions which
      	create correctly initialized options structures without widgets.
      
      	* app/tools/paint_options.[ch]: removed the options struct
      	definitions and value initialisations.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed all paint_options functions
      	accordingly, s/PaintOptions/GimpPaintOptions/g etc., removed all
      	#if 0'ed non_gui functions.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: use gimp_paint_core_stroke().
      	We currently leak all paint_options structs created by the PDB
      	wrappers, more stuff to come...
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      9c510759
    • Michael Natterer's avatar
      return the corrent value in g_retuen_val_if_fail(). · 5153abaf
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimpdrawtool.c: return the corrent value in
      	g_retuen_val_if_fail().
      
      	* app/tools/gimppainttool.c: removed some more painting logic...
      
      	* app/paint/gimppaintcore.[ch]: ...and added it here so the PDB
      	wrappers can use it too. Added "gboolean use_pressure" which needs
      	to be set by GimpPaintTool so we don't need access to GdkDevices.
      5153abaf
  34. 15 Feb, 2002 1 commit
    • Michael Natterer's avatar
      added back the handler which invalidates the display_title on dirty/clean. · 72284d38
      Michael Natterer authored
      2002-02-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-handlers.c: added back the handler
      	which invalidates the display_title on dirty/clean. Removing it
      	was simply wrong.
      
      	* app/display/gimpdisplayshell-scale.c: don't call
      	gimp_display_shell_update_title() directly but set
      	shell->title_dirty to TRUE before calling gdisplays_flush().
      
      	* app/paint/gimppaintcore.[ch]: added gimp_paint_core_constrain()
      	which does the "snap to 15 degrees" stuff formerly done in
      	GimpPaintTool. Call gimp_brush_select_brush() in
      	gimp_paint_core_paint() if paint_state == MOTION, not in several
      	other places.  Reordered functions, added some comments and
      	documentation.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c:
      	s/CORE_CAN_HANDLE_CHANGING_BRUSH/CORE_HANDLES_CHANGING_BRUSH/g,
      	minor cleanup.
      
      	* app/pdb/pdb-types.h: include "paint/paint-types.h"
      
      	* app/tools/gimppainttool.[ch]: use gimp_paint_core_constrain(),
      	removed paint_tool->state because it's not needed any more,
      	lots of cleanup.
      
      	* tools/pdbgen/app.pl: another eeky special case for "paint/".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: include stuff from "paint/",
      	not "tools/".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      72284d38
  35. 14 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Core/UI separation for the paint tools: · dca988f7
      Michael Natterer authored
      2002-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Core/UI separation for the paint tools:
      
      	* configure.in
      	* app/Makefile.am
      	* app/paint/.cvsignore
      	* app/paint/Makefile.am: added new directory for the paint methods
      	without GUI and tools around them.
      
      	* app/paint/paint-types.h: typedefs for this module.
      
      	* app/paint/gimppaintcore-kernels.h
      	* app/paint/gimppaintcore.[ch]: the general paint logic taken
      	from GimpPaintTool.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: subclasses of GimpPaintCore,
      	implementing their own paint() methods.  Needs more hacking
      	to get the GtkWidget pointers out of the options structs.
      
      	* app/tools/gimppainttool_kernels.h: removed.
      
      	* app/tools/tools-types.h: removed the paint tool enums.
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppenciltool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI
      	things now.  PaintOptions and friends still need to be chopped up
      	though...
      
      	* app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor
      	cleanup.
      
      	* tools/kernelgen.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for
      	all paint PDB wrappers.  The non-gui stuff is completely broken.
      	More commits to come...
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      dca988f7