1. 03 Nov, 2008 1 commit
    • Michael Natterer's avatar
      add "GimpImageType type" parameter because there are only a few calls to · 56b5909c
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_set_tiles): add
      	"GimpImageType type" parameter because there are only a few calls
      	to this function which (can easily pass the current type); however
      	most calls to gimp_drawable_set_tiles_full() were just using the
      	function because of the type argument and passed in the item's
      	current offsets (which means peeking into the item struct or using
      	temp variables).
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/text/gimptextlayer.c (gimp_text_layer_render)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): pass
      	the type to set_tiles().
      
      	* app/core/gimpchannel.c (gimp_channel_convert)
      	* app/core/gimpimage-convert.c (gimp_image_convert)
      	* app/core/gimplayer.c (gimp_layer_convert,add_alpha,flatten):
      	change calls to set_tiles_full() into set_tiles() because the
      	offset doesn't change.
      
      
      svn path=/trunk/; revision=27535
      56b5909c
  2. 02 Nov, 2008 1 commit
    • Martin Nordholts's avatar
      Move the base GeglNode here in preparation for moving the GimpLayer · 24fac1de
      Martin Nordholts authored
      * app/core/gimpitem.[ch]: Move the base GeglNode here in
      preparation for moving the GimpLayer gegl:shift op to here as
      well. After all, the offsets are properties of GimpItem and not
      GimpLayer.
      
      * app/core/gimpdrawable.[ch]: Delegate appropriate stuff to the
      GimpItem base class, like part of the visibility toggling and the
      creation and destruction of the GimpItem node.
      
      * app/core/gimplayer.c
      * app/core/gimpchannel.c
      * app/core/gimpdrawablestack.c: Changed accordingly, use the new
      function names.
      
      * app/core/gimpitempropundo.c
      * app/vectors/gimpvectors-warp.c
      * app/vectors/gimpvectorsmodundo.c: Include gegl.h instead of
      glib-object.h
      
      svn path=/trunk/; revision=27521
      24fac1de
  3. 14 Oct, 2008 1 commit
    • Michael Natterer's avatar
      add a default implementation of GimpDrawable::get_node() which contains a · 5fa6af0e
      Michael Natterer authored
      2008-10-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: add a default implementation of
      	GimpDrawable::get_node() which contains a layer mode node.
      	Implement GimpItem::visibility_changed() and turn the node into a
      	nop when the drawable is invisible. Added public function
      	gimp_drawable_get_mode_node() so subclasses can plug stuff
      	into its "aux" pad.
      
      	* app/core/gimplayer.[ch]
      	* app/core/gimpchannel.[ch]: changed accordingly (remove
      	duplicated member and code that is now in GimpDrawable).
      
      
      svn path=/trunk/; revision=27277
      5fa6af0e
  4. 10 Oct, 2008 1 commit
    • Michael Natterer's avatar
      add virtual function GimpDrawable::get_node() which returns a node to be · b479b7b3
      Michael Natterer authored
      2008-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: add virtual function
      	GimpDrawable::get_node() which returns a node to be plugged into
      	the projection.
      
      	* app/core/gimplayer.[ch]: remove public get_node() api and
      	implement the virtual function instead.
      
      	* app/core/gimpimage.c: changed accordingly.
      
      
      svn path=/trunk/; revision=27211
      b479b7b3
  5. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Address Bug 554983 – Layers Projection using GEGL · 517e58cd
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Address Bug 554983 – Layers Projection using GEGL
      
      	* app/gegl/gimp-gegl-utils.[ch]: add (imcomplete) function
      	gimp_layer_mode_to_gegl_operation() from bug #554983.
      
      	* app/core/gimpdrawable.[ch]: add gimp_drawable_get_source_node()
      	which returns a GimpOperationTileSource for the drawable's
      	tiles.
      
      	(gimp_drawable_real_set_tiles)
      	(gimp_drawable_configure): set the node's "tiles" property.
      
      	* app/core/gimplayer.[ch]: add gimp_layer_get_node() which returns
      	a GeglNode with proxy "input" and "output" pads to be plugged
      	into the projection graph. The node has children for opacity,
      	mask, layer mode and layer offset.
      
      	(gimp_layer_translate)
      	(gimp_layer_add_mask)
      	(gimp_layer_apply_mask)
      	(gimp_layer_set_opacity)
      	(gimp_layer_set_mode): reconfigure the respective nodes.
      
      	* app/core/gimpimage.[ch]: keep a "graph" node around and destroy
      	it in finalize(). Not even a stub, just a silly GEGL dependency.
      
      
      svn path=/trunk/; revision=27204
      517e58cd
  6. 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
  7. 18 Dec, 2007 1 commit
  8. 04 Dec, 2007 1 commit
    • Michael Natterer's avatar
      added new API gimp_drawable_estimate_memsize() and virtual function · dd80b4c2
      Michael Natterer authored
      2007-12-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new API
      	gimp_drawable_estimate_memsize() and virtual function
      	GimpDrawable::estimate_memsize() which estimate the memsize of a
      	drawable after scaling/resizing.
      
      	* app/core/gimplayer.c: implement the virtual function and take
      	the layer mask into account.
      
      	* app/core/gimpimage-item-list.[ch] (gimp_image_item_list_get_list):
      	added const qualifiers.
      
      	* app/core/gimpimage-scale.c (gimp_image_scale_check): use the new
      	function to correctly estimate the new size instead of scaling the
      	drawables' memsizes including all constant parts. Fixes bug #329468.
      
      	* app/gimp-log.[ch]: added IMAGE_SCALE log domain.
      
      	* app/core/gimpimage-scale.c: use it here for debugging output.
      
      
      svn path=/trunk/; revision=24260
      dd80b4c2
  9. 09 Dec, 2006 1 commit
  10. 12 Apr, 2006 1 commit
  11. 07 Apr, 2006 3 commits
    • Sven Neumann's avatar
      renamed gimp_drawable_shadow() to gimp_drawable_get_shadow_tiles(). · cfd7233b
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_shadow() to
      	gimp_drawable_get_shadow_tiles().
      
      	* app/core/gimpimage.[ch]: renamed gimp_image_shadow() to
      	gimp_image_get_shadow_tiles() and gimp_image_free_shadow() to
      	gimp_image_free_shadow_tiles().
      
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-levels.c
      	* app/core/gimpimagemap.c
      	* app/plug-in/plug-in-message.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      cfd7233b
    • Sven Neumann's avatar
      renamed gimp_drawable_cmap() to gimp_drawable_get_colormap() and let it · eababf48
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_cmap() to
      	gimp_drawable_get_colormap() and let it return a const array.
      
      	* app/core/gimpdrawable-convert.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell-preview.c: changed accordingly.
      eababf48
    • Sven Neumann's avatar
      renamed gimp_drawable_data() to gimp_drawable_get_tiles(). · cef9db57
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_data() to
      	gimp_drawable_get_tiles().
      
      	[lots of files]: changed accordingly.
      cef9db57
  12. 28 Mar, 2006 1 commit
  13. 19 Oct, 2004 1 commit
    • Michael Natterer's avatar
      added gimp_drawable_mask_intersect() which returns the same bounding box · cb48cef8
      Michael Natterer authored
      2004-10-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_mask_intersect()
      	which returns the same bounding box as gimp_drawable_mask_bounds(),
      	but returns TRUE only if there is a non-empty intersection between
      	the drawable and the selection, or no selection at all. It also
      	returns the intersection as x,y,width,height instead of the
      	eeky x1,y1,x2,y2.
      
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimagemap.c
      	* app/core/gimpselection.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: either switch from
      	gimp_drawable_mask_bounds() to _intersect() or check the return
      	values of _mask_bounds() manually to avoid operations on empty
      	areas. Return successfully because it's a nop, not a failure.
      	Fixes bug #155733 for the core.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cb48cef8
  14. 13 Jul, 2004 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new interface which has · 54cc251b
      Michael Natterer authored
      2004-07-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimppickable.[ch]: new interface which has
      	get_image_type(), get_tiles() and get_color_at() methods.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimpprojection.[ch]: implement GimpPickableInterface
      	and removed public get_colot_at() functions.
      
      	* app/core/gimpimage-pick-color.[ch]: removed typedef
      	GimpImagePickColorFunc and gimp_image_pick_color_by_func(). Use
      	gimp_pickable_pick_color() instead.
      
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/gui/info-window.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/widgets/gimpselectioneditor.c: use GimpPickable functions
      	instead of the various get_color_at() functions. Simplifies code
      	which has a "sample_merged" boolean. Various cleanups.
      54cc251b
  15. 13 Apr, 2004 2 commits
    • Michael Natterer's avatar
      Moved the calls to floating_sel_relax()/rigor() from various places to two · 2e61d12e
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	Moved the calls to floating_sel_relax()/rigor() from various
      	places to two single spots in the core where they are actually
      	needed. Fixes bug #138356 (which was caused by the projection
      	being triggered in the middle of changing the floating selection's
      	size or the size of the drawable it is attached to). This commit
      	effectively removes floating selection fiddling from the core's
      	public API.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_has_floating_sel): new
      	function which returns TRUE if there is a floating selection
      	attached to the drawable.
      
      	* app/core/gimpdrawable.c (gimp_drawable_translate)
      	(gimp_drawable_set_tiles_full): if the drawable *has* a floating
      	selection, relax/rigor it before/after modifying the drawable.
      
      	* app/core/gimplayer.c (gimp_layer_translate)
      	(gimp_layer_set_tiles): if the layer *is* the floating selection,
      	relax/rigor it before/after modifying it.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: removed calls to
      	floating_sel_rigor()/relax() all over the place. Also removed
      	lots of undo groups which are obsolete now.
      
      	* app/pdb/layer_cmds.c: regenerated.
      2e61d12e
    • Michael Natterer's avatar
      GimpItem undo group cleanup in preparation of fixing bug #138356: · 069489fb
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	GimpItem undo group cleanup in preparation of fixing bug #138356:
      
      	* app/core/core-enums.[c]: renamed LAYER_SCALE and LAYER_RESIZE
      	undo groups to ITEM_SCALE and ITEM_RESIZE.
      
      	* app/core/gimpitem.[ch]: always push undo groups around
      	GimpItem::translate(), scale(), resize(), flip(), rotate() and
      	transform(). Added the resp. undo_desc strings to GimpItemClass.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.c: removed all undo groups from
      	implementations of the above methods. Removed the undo_desc
      	strings which were moved to GimpItemClass.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpselection.c
      	* app/gui/layers-commands.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      069489fb
  16. 01 Apr, 2004 1 commit
    • Michael Natterer's avatar
      added undo type GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types · acc72b62
      Michael Natterer authored
      2004-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added undo type
      	GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types
      	GIMP_UNDO_GROUP_DRAWABLE and GIMP_UNDO_GROUP_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.[ch]: added new new function
      	gimp_image_undo_push_text_layer_modified() which makes
      	modifications of the text_layer's "modified" boolean undoable.
      
      	* app/core/gimpdrawable.[ch]: added new virtual function
      	GimpDrawable::push_undo() and moved the actual undo pushing into
      	the default implementation gimp_drawable_real_push_undo().
      
      	* app/text/gimptextlayer.c (gimp_text_layer_push_undo): new
      	function. Pushes the text_layer's modified state to the undo stack
      	after upchaining and sets modified to TRUE.
      
      	(gimp_text_layer_set_tiles): ditto.
      
      	(gimp_lext_layer_apply_region)
      	(gimp_text_layer_replace_region): removed because their default
      	implementations already call gimp_drawable_push_undo().
      
      	(gimp_text_layer_swap_pixels): removed because swap_pixels() is
      	used by undo only and doesn't need to care about the text_layer's
      	modified state.
      
      	(gimp_text_layer_render): don't set modified to FALSE here because
      	we can't push an undo step here.
      
      	(gimp_text_layer_set): push the modified state to the undo stack
      	and set it to FALSE here. Also push the layer's tiles if the
      	layer was modified.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_apply): push "modified"
      	to the undo stack and set it to FALSE here, too.
      
      	Fixes bug #137767.
      acc72b62
  17. 15 Mar, 2004 3 commits
    • Michael Natterer's avatar
      replaced GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by · 5ef7c774
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by
      	GIMP_UNDO_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_layer_mod() and
      	gimp_image_undo_push_channel_mod() by
      	gimp_image_undo_push_drawable_mod().
      
      	* app/core/gimpdrawable.[ch]: added undo_desc strings for "resize"
      	and "scale" to the GimpDrawableClass struct.
      
      	(gimp_drawable_scale)
      	(gimp_drawable_resize): pass push_undo = TRUE to
      	gimp_drawable_set_tiles_full() and use the undo_desc from the
      	class.
      
      	(gimp_drawable_real_set_tiles): push a GIMP_UNDO_DRAWABLE_MOD here...
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: ...and don't push undos in
      	GimpItem::scale(), GimpItem::resize(), GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c: Removed even more bounds_known = FALSE
      	assignments from functions which already call
      	gimp_drawable_set_tiles().
      5ef7c774
    • Michael Natterer's avatar
      added "offset_x" and "offset_y" parameters to GimpDrawable::set_tiles(). · 1ef5fa93
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added "offset_x" and "offset_y"
      	parameters to GimpDrawable::set_tiles().
      
      	(gimp_drawable_set_tiles): removed the "GimpImageType" parameter.
      
      	(gimp_drawable_set_tiles_full): new function adding type, offset_x
      	and offset_y parameters.
      
      	(gimp_drawable_real_set_tiles): set the drawable's offsets from
      	the offset parameters and its size from the passed TileManager's
      	size. Emit "size_changed" accordingly.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptransformtool.c: changed accordingly: removed
      	calls to gimp_viewable_size_changed() and all sorts of hackish
      	assignments of the drawable's width/height/offset_x/offset_y
      	properties.
      1ef5fa93
    • Michael Natterer's avatar
      Prepare the undo system for proper text layer undo: · a18a1d12
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	Prepare the undo system for proper text layer undo:
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_IMAGE and GIMP_UNDO_IMAGE_MOD by GIMP_UNDO_DRAWABLE.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_image() and gimp_image_undo_push_image_mod()
      	by gimp_image_undo_push_drawable() which *always* expects to get a
      	TileManager passed. Also added g_return_if_fail()s to check if the
      	passed in tile manager follows the semantics of the "sparse"
      	boolean.
      
      	(undo_pop_drawable): removed all code and call the new
      	gimp_drawable_swap_pixels() instead (see below).
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_push_undo): if tiles
      	are NULL, create a copy of the area here and always pass tiles to
      	gimp_image_undo_push_drawable(). Added lots of g_return_if_fail()
      	here too.
      
      	Added new vitrual function GimpDrawable::swap_pixels() which
      	does what undo_pop_drawable() did.
      
      	* app/core/gimpchannel.c: implement swap_pixels() and invalidate
      	the channel's bounds and boundary.
      a18a1d12
  18. 13 Mar, 2004 1 commit
    • Sven Neumann's avatar
      added new virtual function GimpDrawable::set_tiles(). · c179f9ac
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new virtual function
      	GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: push an undo before chaining up in
      	set_tiles().
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/tools/gimptransformtool.c: use gimp_drawable_set_tiles()
      	instead of fiddling with the drawable's tile manager directly.
      c179f9ac
  19. 14 Jan, 2004 1 commit
    • Michael Natterer's avatar
      added GIMP_IMAGE_TYPE_WITHOUT_ALPHA() macro as counterpart to · 9d43b066
      Michael Natterer authored
      2004-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.h: added GIMP_IMAGE_TYPE_WITHOUT_ALPHA()
      	macro as counterpart to GIMP_IMAGE_TYPE_WITH_ALPHA().
      
      	* app/core/gimpdrawable.[ch]: added
      	gimp_drawable_type_without_alpha() and
      	gimp_drawable_bytes_without_alpha() convenience functions.
      9d43b066
  20. 06 Jan, 2004 1 commit
    • Michael Natterer's avatar
      Enabled skipping enum values for either the PDB or GType registration · dec20d82
      Michael Natterer authored
      2004-01-06  Michael Natterer  <mitch@gimp.org>
      
      	Enabled skipping enum values for either the PDB or GType
      	registration (don't always skip both targets):
      
      	* tools/gimp-mkenums: skip enum values only if there is a literal
      	"skip" (don't match "pdb-skip").
      
      	* tools/pdbgen/enumgen.pl: skip only "pdb-skip" values, not "skip"
      	ones.
      
      	* app/base/base-enums.h
      	* app/core/core-enums.h
      	* app/paint/paint-enums.h
      	* libgimpbase/gimpbaseenums.h: use the right "pdb-skip"/"skip"
      	combination to skip enum values. Changed comments accordingly.
      
      	Cleaned up the fill functions:
      
      	* app/core/core-enums.[ch]: added GIMP_PATTERN_FILL enum value to
      	the GimpFillType enum. Don't export GIMP_NO_FILL to the PDB
      	because it's completely useless to export a NOP.
      
      	* app/core/gimp-edit.c (gimp_edit_fill, gimp_edit_fill_internal):
      	handle pattern fill requests.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_fill): added GimpPattern
      	parameter and fill with it if it's non-NULL.
      
      	(gimp_drawable_fill_by_type): handle pattern fill and pass the
      	current pattern to gimp_drawable_fill().
      
      	* app/text/gimptextlayer.c: changed accordingly.
      
      	* app/gui/edit-commands.c
      	* app/gui/image-menu.c: use gimp_edit_fill() instead of
      	gimp_drawable_bucket_fill() for FG, BG and pattern filling.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: removed NO_IMAGE_FILL compat
      	enum value. It should have never been exported to the PDB.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      dec20d82
  21. 06 Oct, 2003 2 commits
    • Michael Natterer's avatar
      one more fix for bug #107949: don't take the selection into account if we · fdbbfff8
      Michael Natterer authored
      2003-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds): one
      	more fix for bug #107949: don't take the selection into
      	account if we are operating on the selection itself.
      
      	Ordered shadow tiles functions together, cleanup.
      fdbbfff8
    • Michael Natterer's avatar
      added new virtual functions GimpDrawable::get_active_components(), · a20e04bd
      Michael Natterer authored
      2003-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new virtual functions
      	GimpDrawable::get_active_components(), apply_region() and
      	replace_region().
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-combine.[ch]: new files containing
      	apply_region()'s and replace_region()'s default implementation.
      	They are identical to the ones removed from GimpImage except that
      	they don't mask the selection with itself (bug #107949).
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: implement get_active_components().
      
      	* app/core/gimpchannel.c: implement apply_region() and
      	replace_region() and invalidate the channel's boundary
      	before upchaining (bug #107949).
      
      	* app/core/gimpimage.[ch]: removed gimp_image_apply_image(),
      	gimp_image_replace_image() and gimp_image_get_active_components().
      
      	* app/core/gimpimage-undo-push.c (undo_pop_image): invalidate
      	boundary and bounds if the drawable is a channel (bug #107949).
      
      	(undo_pop_mask)
      	(undo_pop_channel_mod): finish previous commit :)
      
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpinktool.c: changed accordingly.
      a20e04bd
  22. 11 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed "visible" and all its API... · 7cf4eb46
      Michael Natterer authored
      2003-09-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed "visible" and all its API...
      
      	* app/core/gimpitem.[ch]: ...and added it here.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]: changed the drawable
      	visibility undo to be an item visibility undo.
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: save it in PROP_VECTORS and changed channel
      	and layer loading/saving accordingly.
      
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/text/gimptextlayer.c
      	* app/gui/channels-commands.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimpdrawabletreeview.[ch]: removed the eye icon...
      
      	* app/widgets/gimpitemtreeview.[ch]: ...and added it here.
      7cf4eb46
  23. 06 Sep, 2003 1 commit
    • Michael Natterer's avatar
      To optimize duplicate and/or wrong image updates away, introduced new · 7a5f9148
      Michael Natterer authored
      2003-09-06  Michael Natterer  <mitch@gimp.org>
      
      	To optimize duplicate and/or wrong image updates away, introduced
      	new policy that a child object must never explicitly update or
      	invalidate its parent object (just like the GUI is not updated
      	explicitly by the core):
      
      	* app/core/gimpdrawable.[ch]: added new signal
      	GimpDrawable::update(). Never update or invalidate the image when
      	the drawable is updated or invalidated.
      
      	(gimp_drawable_set_visible): don't gimp_drawable_update() the
      	drawable since its pixels have not changed.
      
      	* app/core/gimpimage.[ch]: connect to the "add" and "remove"
      	signals of the layers and channels containers. Also connect to the
      	"update" and "visibility_changed" signals of all drawables in
      	these containers (optimizes away updates issued by drawables which
      	are not yet added to the image and updates of the selection
      	mask). Also, don't propagate updates to the image if the emitting
      	drawable is invisible (optimizes away updates issued by invisible
      	drawables).
      
      	(gimp_image_add_layer,channel)
      	(gimp_image_remove_layer,channel): don't update the image since
      	that's done by our "add" and "remove" handlers now.
      
      	(gimp_image_position_layer,channel): update just the image, not
      	the drawable since its pixels have not changed.
      
      	(gimp_image_real_colormap_changed)
      	(gimp_image_set_component_visible): always call
      	gimp_image_update() *and* gimp_viewable_invalidate_preview() to
      	get everything updated, since update and invalidate of images are
      	not connected.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer,channel): don't
      	update the drawable since (a) its pixels don't change and (b) the
      	image updates itself upon adding/removing now.
      
      	(undo_pop_layer_mod): replaced gimp_image_update() by
      	gimp_drawable_update() (just for consistency with other similar
      	functions).
      
      	* app/core/gimplayer.c: connect to "update" of the layer mask and
      	issue updates on the layer if the mask update has any effect on
      	the projection.
      	(gimp_layer_create_mask): don't set the mask's offsets here since
      	they may be different when we later add the mask to the layer.
      
      	* app/core/gimplayermask.c (gimp_layer_mask_set_layer): set the
      	mask offsets here instead.
      
      	* app/core/gimpchannel.c (gimp_channel_translate): update the
      	channel even if push_undo == FALSE.
      
      	* app/paint/gimppaintcore.c (gimp_paint_core_finish)
      	* app/tools/gimpinktool.c (ink_finish): invalidate both the
      	drawable and the image preview since invalidating the drawable
      	doesn't invalidate the image any more.
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render_now): also
      	update the new extents of the text layer, not only the old one.
      
      	(gimp_text_layer_render_layout): don't update the drawable since
      	gimp_drawable_fill() already updated it.
      7a5f9148
  24. 04 Sep, 2003 1 commit
    • Michael Natterer's avatar
      added new pure virtual function GimpDrawable::invalidate_boundary(). · f9f5089f
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new pure virtual function
      	GimpDrawable::invalidate_boundary().
      
      	* app/core/gimplayer.[ch]: implement it and removed public
      	function gimp_layer_invalidate_boundary().
      
      	* app/core/gimpchannel.[ch]: implement it.
      
      	* app/core/gimpselection.[ch]: implement it and removed public
      	function gimp_selection_invalidate().
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_invalidate)
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/text/gimptextlayer.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: made gimp_channel_push_undo() a
      	public function and made it call
      	gimp_drawable_invalidate_boundary(). Added undo_desc strings for
      	all undo pushing functions to GimpChannelClass.
      
      	* app/core/gimpselection.[ch]: removed gimp_selection_push_undo()
      	since after the change above it was identical to
      	gimp_channel_push_undo().  Don't push any undo here since
      	upchaining does the right thing now.  Override GimpChannelClass'
      	undo_desc strings to say "Selection".
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_push_undo): changed
      	accordingly.
      f9f5089f
  25. 21 May, 2003 1 commit
    • Michael Natterer's avatar
      added GimpDrawable::alpha_changed() signal. · 31bf3c90
      Michael Natterer authored
      2003-05-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added GimpDrawable::alpha_changed()
      	signal.
      
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer.c: emit it when alpha is removed from or
      	added to a layer.
      
      	* app/widgets/gimpcontainertreeview.[ch]: added a
      	"name_attributes" column to the list store which provides a
      	PangoAttrList for the name column.
      
      	* app/widgets/gimplayertreeview.[ch]: connect to all layers'
      	"alpha_changed" and set the BG layer's name to bold.
      
      	* app/widgets/gimpdrawabletreeview.c: removed redundant assertions.
      31bf3c90
  26. 08 May, 2003 3 commits
    • Michael Natterer's avatar
      removed gimp_drawable_offsets(). · c1ab39a5
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
      
      	* app/core/gimpitem.[ch]: added gimp_item_offsets().
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c: regenerated.
      c1ab39a5
    • Michael Natterer's avatar
      removed gimp_drawable_width,height(). · 54878b79
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_width,height().
      
      	* app/core/gimpitem.[ch]: added gimp_item_width,height().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpscanconvert.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      54878b79
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d
  27. 17 Mar, 2003 1 commit
    • Michael Natterer's avatar
      Made drawable/layer properties (visibility, opacity etc.) undoable (fixes · 884b3aa7
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      
      	Made drawable/layer properties (visibility, opacity etc.)
      	undoable (fixes bug #73893).
      
      	* app/core/core-enums.[ch]: added undo types/groups for
      	visibility, mode, opacity, linked and preserve_trans.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
      	ref'ed GimpItem pointer so (1) this doesn't need to be done by all
      	undo steps related to an item and (2) the item the undo step is
      	for can be determined from outside the undo system.
      
      	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
      	which returns a new GimpItemUndo.
      
      	* app/core/gimpimage-undo-push.[ch]: use it for all item related
      	undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
      	and GimpVectors pointers from the private undo structs. Added
      	undo push functions for the new undo types added above.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
      	"gboolean push_undo" parameter.
      
      	* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
      	_preserve_trans, _linked): added "gboolean push_undo" parameters.
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayer-floating-sel.c
      	* app/tools/gimpmovetool.c
      	* app/xcf/xcf-load.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
      	the foo_accessors() functions. Removed $func from foo_accesors()
      	because we don't manipulate items without using getters/setters
      	any longer.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
      	which carries an additional "GdkModifierType state" parameter as
      	in GimpCellRendererViewable .
      
      	* app/widgets/gimpcontainertreeview.c: emit "clicked" from
      	the toggle renderer, not "toggled" so the callbacks get the
      	modifier state.
      
      	* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
      	visible by <shift>+click" feature as in 1.2.
      
      	* app/widgets/gimplayertreeview.c: compress layer opacity undos by
      	looking at the top of the undo stack and not pushing an undo if
      	there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
      	layer.
      884b3aa7
  28. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* 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.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  29. 11 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added new virtual function duplicate() as replacement for all · 436ed648
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added new virtual function duplicate()
      	as replacement for all gimp_*_copy() functions.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]
      	* app/vectors/gimpvectors.[ch]: replaced public copy() functions
      	by duplicate() implementations.
      
      	* app/text/gimptextlayer.c: added a duplicate() implementation.
      
      	* app/widgets/gimpitemlistview.[ch]: removed the "copy_item_func"
      	and simply call gimp_item_duplicate().
      
      	* app/undo.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-qmask.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      436ed648
  30. 31 Jan, 2003 1 commit
    • Sven Neumann's avatar
      added offset_x and offset_y to gimp_drawable_configure(). · 291eb383
      Sven Neumann authored
      2003-01-31  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added offset_x and offset_y to
      	gimp_drawable_configure().
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c: changed accordingly.
      
      	* app/text/gimptextlayer.[ch]: update the layer when the associated
      	GimpText object changes.
      291eb383
  31. 06 Jun, 2002 1 commit
    • Michael Natterer's avatar
      renamed gimp_drawable_apply_image() to gimp_drawable_push_undo() because · 413b9d33
      Michael Natterer authored
      2002-06-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_apply_image()
      	to gimp_drawable_push_undo() because that's what it actually does.
      
      	* app/image_map.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpinktool.c: changed accordingly. Removed redundant
      	comments because it's now obvious what the function does from
      	looking at its name.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.h: renamed "gboolean undo" parameters to
      	"gboolean push_undo".
      413b9d33
  32. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.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/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b