1. 08 Jan, 2011 3 commits
  2. 19 Feb, 2010 1 commit
    • Michael Natterer's avatar
      Bug 610478 - Layer preview suddenly stops getting updated · c55753f2
      Michael Natterer authored
      gimp_paint_core_finish(): when bailing out early because nothing was
      painted (e.g. because we repeatedly shift-click on the same pixel,
      which doesn't advance the interpolation distance), don't forget to
      call gimp_viewable_preview_thaw() or the drawable preview will be
      frozen forever.
      c55753f2
  3. 17 Jun, 2009 1 commit
    • Michael Natterer's avatar
      Use more x,y,width,height instead of x1,y1,x2,y2 · bdd8d8e3
      Michael Natterer authored
      (gimp_paint_core_get_orig_image)
      (gimp_paint_core_get_orig_proj): changed parameters to x,y,width,height.
      Update callers accordingly and use x,y,width,height there too except
      in gimpperspectiveclone.c which does better with a bounding box.
      bdd8d8e3
  4. 16 Jun, 2009 2 commits
  5. 25 May, 2009 1 commit
  6. 17 May, 2009 1 commit
  7. 03 May, 2009 2 commits
    • Michael Natterer's avatar
      Some style cleanup. · 0da1c4cb
      Michael Natterer authored
      0da1c4cb
    • Michael Natterer's avatar
      Stop accessing GimpPaintCore's coords members directly (no encapsulation yet). · 07ba32d6
      Michael Natterer authored
      * app/paint/gimppaintcore.[ch]: add
        gimp_paint_core_{get|set}_{current|last}_coords(), add "const GimpCoords*"
        parameter to ::paint() which gets core->cur_coords passed.
      
      * app/paint/gimpsourcecore.[ch]: add "const GimpCoords*" to ::motion().
      
      * app/paint/gimpbrushcore.c: use the new coords getters/setters instead
        of accessing GimpPaintCore members directly.
      
      * app/paint/gimpairbrush.c
      * app/paint/gimpclone.c
      * app/paint/gimpconvolve.c
      * app/paint/gimpdodgeburn.c
      * app/paint/gimperaser.c
      * app/paint/gimpheal.c
      * app/paint/gimpink.c
      * app/paint/gimppaintbrush.[ch]
      * app/paint/gimpperspectiveclone.c
      * app/paint/gimpsmudge.c: change implementations of GimpPaintCore::paint()
        and GimpSourceCore::motion() accordingly. app/paint/ is now virtually
        free of direct access to the paint core's coords members. More to come...
      07ba32d6
  8. 22 Apr, 2009 1 commit
  9. 17 Apr, 2009 1 commit
  10. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  11. 27 Dec, 2008 2 commits
  12. 08 Nov, 2008 1 commit
    • Michael Natterer's avatar
      add optional parameter "PixelRegion *destPR" to · 19841645
      Michael Natterer authored
      2008-11-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: add optional parameter "PixelRegion
      	*destPR" to GimpDrawable::apply_region().
      
      	* app/core/gimpdrawable-combine.[ch]: if the passed destPR is !=
      	NULL, write the result of the combination into that region instead
      	of the drawable's tiles. The region must have the exact size of
      	the result.
      
      	* app/core/gimp-edit.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-shadow.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/paint/gimppaintcore.c: pass NULL as destPR. Code actually
      	using this feature follows.
      
      
      svn path=/trunk/; revision=27574
      19841645
  13. 04 Nov, 2008 1 commit
    • Michael Natterer's avatar
      remove public functions get_tiles(), get_image(), get_image_type() and · 87dc343b
      Michael Natterer authored
      2008-11-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpprojection.[ch]: remove public functions
      	get_tiles(), get_image(), get_image_type() and get_bytes().
      
      	* app/actions/debug-commands.c
      	* app/actions/layers-commands.c
      	* app/core/gimpprojection-construct.c
      	* app/display/gimpdisplayshell-render.c
      	* app/paint/gimppaintcore.c
      	* tools/pdbgen/pdb/layer.pdb: use the GimpPickable API insatead.
      
      	* app/pdb/layer-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27547
      87dc343b
  14. 03 Nov, 2008 1 commit
    • Michael Natterer's avatar
      renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() · 740ab5e6
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_width() to gimp_item_get_width() and
      	gimp_item_height() to gimp_item_get_height().
      
      	* app/actions/channels-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/dialogs/offset-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/dialogs/scale-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimptexttool.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderervectors.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27531
      740ab5e6
  15. 02 Nov, 2008 1 commit
    • Michael Natterer's avatar
      renamed gimp_item_offsets() to gimp_item_get_offset() and · 5b68a1d0
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_offsets() to gimp_item_get_offset() and
      	gimp_item_set_offsets() to gimp_item_set_offset().
      
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-preview.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/text/gimptextlayer-xcf.c
      	* app/tools/<many>.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/vectors.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c
      	* app/pdb/drawable-transform-cmds.c
      	* app/pdb/selection-cmds.c
      	* app/pdb/vectors-cmds.c
      	* app/pdb/transform-tools-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27529
      5b68a1d0
  16. 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
  17. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
  18. 13 Aug, 2008 1 commit
  19. 12 Aug, 2008 1 commit
  20. 07 Aug, 2008 1 commit
    • Sven Neumann's avatar
      added gimp_image_get_projection(). · 3b067cba
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.[ch]: added gimp_image_get_projection().
      
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpsamplepointeditor.c
      	* tools/pdbgen/pdb/image.pdb: use the new accessor function.
      
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26413
      3b067cba
  21. 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
  22. 13 Nov, 2007 1 commit
    • Sven Neumann's avatar
      Fix for bug #494049 (painting doesn't update the histogram): · efa6b2b8
      Sven Neumann authored
      2007-11-13  Sven Neumann  <sven@gimp.org>
      
      	Fix for bug #494049 (painting doesn't update the histogram):
      
      	* app/paint/gimppaintcore.c: freeze the drawable preview while we
      	are painting. Update the drawable instead of the image.
      
      	* app/widgets/gimphistogrameditor.c: use a short timeout instead
      	of an idle handler to update the histogram.
      
      svn path=/trunk/; revision=24143
      efa6b2b8
  23. 12 Sep, 2007 1 commit
    • Sven Neumann's avatar
      use the offsets module TILE_WIDTH and TILE_HEIGHT instead of doing the · 1954ee81
      Sven Neumann authored
      2007-09-12  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile.c (tile_data_pointer): use the offsets module
      	TILE_WIDTH and TILE_HEIGHT instead of doing the module operation
      	in each and every caller.
      
      	* app/base/boundary.c
      	* app/base/pixel-region.c
      	* app/base/tile-manager.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-render.c
      	* app/paint-funcs/paint-funcs.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=23515
      1954ee81
  24. 26 Jun, 2007 1 commit
    • Michael Natterer's avatar
      update the image, not the drawable so we avoid constantly invalidating the · 4625597a
      Michael Natterer authored
      2007-06-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimagemap.c (gimp_image_map_clear)
      	(gimp_image_map_do): update the image, not the drawable so we
      	avoid constantly invalidating the drawable preview.
      
      	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_response):
      	invalidate the drawable preview here.
      
      	* app/paint/gimppaintcore.c (gimp_paint_core_paste)
      	(gimp_paint_core_replace): clean up drawable offset handling code.
      
      
      svn path=/trunk/; revision=22843
      4625597a
  25. 21 Jun, 2007 1 commit
    • Michael Natterer's avatar
      Part one of fix for bug #449141 (fixes the projection but still leaves · 1a13f51e
      Michael Natterer authored
      2007-06-21  Michael Natterer  <mitch@gimp.org>
      
      	Part one of fix for bug #449141 (fixes the projection but still
      	leaves some image previews unupdated).
      
      	* app/core/gimpimage.c (lots of functions)
      	* app/paint/gimppaintcore.c (gimp_paint_core_finish)
      	* app/file/file-open.c (file_open_sanitize_image): removed calls
      	to gimp_viewable_invalidate_preview(image).
      
      	* app/file/file-open.c (file_open_sanitize_image): update and
      	flush the entire image instead. Load plug-ins are not required to
      	call gimp_drawable_update() or anything else to make sure the
      	projection is up-to-date.
      
      	* app/core/gimpimage.c (gimp_image_real_flush): inavlidate the
      	image preview here because we now create it from the projection.
      	(this is still not the entirely correct place though).
      
      
      svn path=/trunk/; revision=22815
      1a13f51e
  26. 31 Mar, 2007 1 commit
  27. 03 Feb, 2007 2 commits
    • Michael Natterer's avatar
      Remove support for the old undo pop and free cruft: · bdc91d6c
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	Remove support for the old undo pop and free cruft:
      
      	* app/core/core-types.h: remove typedefs GimpUndoPopFunc and
      	GimpUndoFreeFunc.
      
      	* app/core/gimpundo.[ch]: remove members and properties size,
      	data, pop_func and free_func.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): remove
      	parameters size, struct_size, pop_func and free_func.
      
      	* app/core/gimpimage-undo-push.c
      	* app/tools/gimptransformtool.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c: change calls to above function
      	accordingly.
      
      
      svn path=/trunk/; revision=21845
      bdc91d6c
    • 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
  28. 22 Jan, 2007 1 commit
    • Sven Neumann's avatar
      added some comments. · 125c3d96
      Sven Neumann authored
      2007-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintbrush.c: added some comments.
      
      	* app/paint/gimppaintcore.c: sprinkled with const qualifiers.
      
      
      svn path=/trunk/; revision=21756
      125c3d96
  29. 09 Dec, 2006 1 commit
  30. 26 Sep, 2006 2 commits
    • 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
    • Michael Natterer's avatar
      added some missing g_return_if_fail() and moved variables to local scopes. · c598fe65
      Michael Natterer authored
      2006-09-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.c: added some missing g_return_if_fail()
      	and moved variables to local scopes.
      c598fe65
  31. 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
  32. 15 May, 2006 1 commit
  33. 12 Apr, 2006 1 commit