renamed gimp_drawable_shadow() to gimp_drawable_get_shadow_tiles().

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.
This commit is contained in:
Sven Neumann 2006-04-07 09:50:23 +00:00 committed by Sven Neumann
parent eababf4891
commit cfd7233bc2
16 changed files with 63 additions and 42 deletions

View File

@ -1,3 +1,24 @@
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.
2006-04-07 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable.[ch]: renamed gimp_drawable_cmap() to

View File

@ -88,7 +88,7 @@ gimp_drawable_desaturate (GimpDrawable *drawable,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel (function, GINT_TO_POINTER (has_alpha),

View File

@ -65,7 +65,7 @@ gimp_drawable_equalize (GimpDrawable *drawable,
/* Apply the histogram */
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) gimp_lut_process,

View File

@ -50,7 +50,7 @@ gimp_drawable_invert (GimpDrawable *drawable)
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) gimp_lut_process,

View File

@ -99,7 +99,7 @@ gimp_drawable_levels (GimpDrawable *drawable,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) gimp_lut_process,
@ -148,7 +148,7 @@ gimp_drawable_levels_stretch (GimpDrawable *drawable,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) gimp_lut_process,

View File

@ -1041,7 +1041,7 @@ gimp_drawable_push_undo (GimpDrawable *drawable,
}
TileManager *
gimp_drawable_shadow (GimpDrawable *drawable)
gimp_drawable_get_shadow_tiles (GimpDrawable *drawable)
{
GimpItem *item;
@ -1051,9 +1051,9 @@ gimp_drawable_shadow (GimpDrawable *drawable)
g_return_val_if_fail (gimp_item_is_attached (item), NULL);
return gimp_image_shadow (gimp_item_get_image (item),
item->width, item->height,
drawable->bytes);
return gimp_image_get_shadow_tiles (gimp_item_get_image (item),
item->width, item->height,
drawable->bytes);
}
void

View File

@ -177,7 +177,7 @@ void gimp_drawable_push_undo (GimpDrawable *drawable,
TileManager *tiles,
gboolean sparse);
TileManager * gimp_drawable_shadow (GimpDrawable *drawable);
TileManager * gimp_drawable_get_shadow_tiles (GimpDrawable *drawable);
void gimp_drawable_merge_shadow (GimpDrawable *drawable,
gboolean push_undo,
const gchar *undo_desc);

View File

@ -807,7 +807,7 @@ gimp_image_finalize (GObject *object)
}
if (image->shadow)
gimp_image_free_shadow (image);
gimp_image_free_shadow_tiles (image);
if (image->cmap)
{
@ -2155,10 +2155,10 @@ gimp_image_transform_temp_buf (const GimpImage *dest_image,
/* shadow tiles */
TileManager *
gimp_image_shadow (GimpImage *image,
gint width,
gint height,
gint bpp)
gimp_image_get_shadow_tiles (GimpImage *image,
gint width,
gint height,
gint bpp)
{
g_return_val_if_fail (GIMP_IS_IMAGE (image), NULL);
@ -2168,7 +2168,7 @@ gimp_image_shadow (GimpImage *image,
(height != tile_manager_height (image->shadow)) ||
(bpp != tile_manager_bpp (image->shadow)))
{
gimp_image_free_shadow (image);
gimp_image_free_shadow_tiles (image);
}
else
{
@ -2182,7 +2182,7 @@ gimp_image_shadow (GimpImage *image,
}
void
gimp_image_free_shadow (GimpImage *image)
gimp_image_free_shadow_tiles (GimpImage *image)
{
g_return_if_fail (GIMP_IS_IMAGE (image));

View File

@ -367,11 +367,11 @@ TempBuf * gimp_image_transform_temp_buf (const GimpImage *dest_image
/* shadow tiles */
TileManager * gimp_image_shadow (GimpImage *image,
TileManager * gimp_image_get_shadow_tiles (GimpImage *image,
gint width,
gint height,
gint bpp);
void gimp_image_free_shadow (GimpImage *image);
void gimp_image_free_shadow_tiles (GimpImage *image);
/* parasites */

View File

@ -350,7 +350,7 @@ gimp_image_map_apply (GimpImageMap *image_map,
/* Configure the dest as the shadow buffer */
pixel_region_init (&image_map->destPR,
gimp_drawable_shadow (image_map->drawable),
gimp_drawable_get_shadow_tiles (image_map->drawable),
x, y, width, height, TRUE);
/* Apply the image transformation to the pixels */

View File

@ -88,7 +88,7 @@ brightness_contrast_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -235,7 +235,7 @@ posterize_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -425,7 +425,7 @@ curves_spline_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -502,7 +502,7 @@ curves_explicit_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -570,7 +570,7 @@ color_balance_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) color_balance,
@ -629,7 +629,7 @@ colorize_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) colorize,
@ -762,7 +762,7 @@ hue_saturation_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) hue_saturation,
@ -816,7 +816,7 @@ threshold_invoker (GimpProcedure *procedure,
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) threshold,

View File

@ -282,7 +282,7 @@ image_free_shadow_invoker (GimpProcedure *procedure,
if (success)
{
gimp_image_free_shadow (image);
gimp_image_free_shadow_tiles (image);
}
return gimp_procedure_get_return_values (procedure, success);

View File

@ -234,7 +234,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
}
if (tile_info->shadow)
tm = gimp_drawable_shadow (drawable);
tm = gimp_drawable_get_shadow_tiles (drawable);
else
tm = gimp_drawable_get_tiles (drawable);
@ -287,7 +287,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
}
if (tile_req->shadow)
tm = gimp_drawable_shadow (drawable);
tm = gimp_drawable_get_shadow_tiles (drawable);
else
tm = gimp_drawable_get_tiles (drawable);

View File

@ -234,7 +234,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
}
if (tile_info->shadow)
tm = gimp_drawable_shadow (drawable);
tm = gimp_drawable_get_shadow_tiles (drawable);
else
tm = gimp_drawable_get_tiles (drawable);
@ -287,7 +287,7 @@ plug_in_handle_tile_req (PlugIn *plug_in,
}
if (tile_req->shadow)
tm = gimp_drawable_shadow (drawable);
tm = gimp_drawable_get_shadow_tiles (drawable);
else
tm = gimp_drawable_get_tiles (drawable);

View File

@ -61,7 +61,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -241,7 +241,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -473,7 +473,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -560,7 +560,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc)
@ -639,7 +639,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) color_balance,
@ -704,7 +704,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) colorize,
@ -858,7 +858,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) hue_saturation,
@ -919,7 +919,7 @@ HELP
pixel_region_init (&srcPR, gimp_drawable_get_tiles (drawable),
x, y, width, height, FALSE);
pixel_region_init (&destPR, gimp_drawable_shadow (drawable),
pixel_region_init (&destPR, gimp_drawable_get_shadow_tiles (drawable),
x, y, width, height, TRUE);
pixel_regions_process_parallel ((PixelProcessorFunc) threshold,

View File

@ -374,7 +374,7 @@ HELP
%invoke = (
code => <<'CODE'
{
gimp_image_free_shadow (image);
gimp_image_free_shadow_tiles (image);
}
CODE
);