1. 08 Apr, 2018 1 commit
    • Ell's avatar
      app: add gimp_drawable_{start,end,flush}_paint() · ce9ca03e
      Ell authored
      gimp_drawable_start/end_paint() are used to enter/exit paint mode
      for a given drawable.  While the drawable is in paint mode,
      gimp_drawable_get_buffer() returns a copy of the real drawable's
      buffer, referred to as the paint buffer, so that modifications to
      the returned buffer don't immediately affect the projection, and
      calls to gimp_drawable_update() queue the updated region, instead
      of emitting an "update" signal.
      
      gimp_drawable_flush_paint() can be called while the drawable is in
      paint mode, in order to copy the updated region of the paint buffer
      back to the drawable's real buffer, and to emit "update" signals
      for the queued region.
      
      We use these functions in the next commit, to move painting to a
      separate thread in the paint tools.
      ce9ca03e
  2. 15 Jul, 2017 1 commit
  3. 12 Feb, 2017 1 commit
  4. 01 Feb, 2017 1 commit
  5. 08 Jan, 2017 1 commit
  6. 14 Oct, 2013 1 commit
    • Michael Natterer's avatar
      app,libgimp*: fix includes to follow our include policy · 697572cc
      Michael Natterer authored
      - don't include <gdk-pixbuf/gdk-pixbuf.h> in headers in app/
      - instead, include it in many .c files instead of <glib-object.h>,
        finally acknowledging the fact that app/ depends on gdk-pixbuf almost
        globally
      - fix up includes as if libgimpbase depended in GIO, which it soon will
      697572cc
  7. 20 May, 2012 1 commit
  8. 18 May, 2012 1 commit
  9. 02 May, 2012 4 commits
  10. 15 Mar, 2011 1 commit
  11. 07 Sep, 2010 1 commit
  12. 03 Feb, 2009 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am new file which contains struct GimpDrawablePrivate. · a1fd8411
      Michael Natterer authored
      2009-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-private.h: new file which contains struct
      	GimpDrawablePrivate. Move some stuff from GimpDrawable here.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpdrawable-shadow.c: changed accordingly.
      
      	* app/text/gimptextlayer-xcf.c
      	* app/xcf/xcf-load.c: include the private struct for these ugly
      	corner cases.
      
      
      svn path=/trunk/; revision=27982
      a1fd8411
  13. 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
  14. 27 Dec, 2008 1 commit
    • Sven Neumann's avatar
      Bug 564593 – crash when the drawable is changed while a color tools is · 4409f385
      Sven Neumann authored
      2008-12-27  Sven Neumann  <sven@gimp.org>
      
      	Bug 564593 – crash when the drawable is changed while a color
      	tools is active
      
      	* app/core/gimpdrawable-shadow.c 
      (gimp_drawable_merge_shadow_tiles):
      	keep a reference to the shadow tiles because it might otherwise 
      be
      	free'd under our feet.
      
      
      svn path=/trunk/; revision=27832
      4409f385
  15. 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
  16. 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
  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. 17 Sep, 2008 1 commit
  19. 06 Aug, 2008 1 commit
    • Sven Neumann's avatar
      removed unused include. · 6d9a5394
      Sven Neumann authored
      2008-08-06  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-shadow.c: removed unused include.
      
      
      svn path=/trunk/; revision=26406
      6d9a5394
  20. 21 Apr, 2008 1 commit
    • Michael Natterer's avatar
      Move the shadow tiles from the image to the drawable. Fixes bug #100469. · e5be5664
      Michael Natterer authored
      2008-04-21  Michael Natterer  <mitch@gimp.org>
      
      	Move the shadow tiles from the image to the drawable.
      	Fixes bug #100469.
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-shadow.[ch]: new files implementing
      	the shadow tiles.
      
      	* app/core/gimpimage.[ch]: remove the shadow tile manager from the
      	GimpImage struct. Remove gimp_image_get_shadow_tiles() and
      	_free_shadow_tiles().
      
      	* app/core/gimpdrawable.[ch]: add the shadow tile manager
      	here. Remove get_shadow_tiles() and merge_shadow(). Free the
      	shadow tiles in finalize and when the drawable gets removed from
      	the image.
      
      	* app/core/gimpdrawable-brightness-contrast.c
      	* app/core/gimpdrawable-color-balance.c
      	* app/core/gimpdrawable-colorize.c
      	* app/core/gimpdrawable-curves.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-hue-saturation.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-levels.c
      	* app/core/gimpdrawable-operation.c
      	* app/core/gimpdrawable-posterize.c
      	* app/core/gimpdrawable-threshold.c
      	* app/core/gimpimagemap.c: changed accordingly. Free the shadow tiles
      	after using them.
      
      	* app/plug-in/gimpplugin-cleanup.[ch]: add
      	gimp_plug_in_cleanup_add_shadow() and _remove_shadow() which keep
      	track of whether shadow tiles were created on behalf of a plug-in
      	procedure.
      
      	(gimp_plug_in_cleanup): free shadow tiles which were created but
      	not destroyed by a plug-in procedure.
      
      	* app/plug-in/gimpplugin-message.c (plug_in_handle_tile_request):
      	call gimp_plug_in_cleanup_add_shadow() whenever a plug-in requests
      	shadow tiles.
      
      	* tools/pdbgen/pdb/drawable.pdb: use the new drawable shadow
      	API. Add new procedure gimp-drawable-free-shadow. Call
      	gimp_plug_in_cleaup_remove_shadow() when it gets called.
      
      	* tools/pdbgen/pdb/image.pdb: deprecate gimp-image-free-shadow.
      	Calling it has no effect any longer.
      
      	* app/pdb/drawable-cmds.c
      	* app/pdb/image-cmds.c
      	* app/pdb/internal-procs.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpdrawable_pdb.[ch]: regenerated.
      
      
      svn path=/trunk/; revision=25510
      e5be5664