renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height()
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
This commit is contained in:
committed by
Michael Natterer
parent
c3b7be242c
commit
740ab5e633
@ -107,11 +107,11 @@ gimp_projection_construct (GimpProjection *proj,
|
||||
|
||||
layer = GIMP_DRAWABLE (gimp_image_get_layer_by_index (image, 0));
|
||||
|
||||
if (gimp_drawable_has_alpha (layer) &&
|
||||
(gimp_item_get_visible (GIMP_ITEM (layer))) &&
|
||||
(gimp_item_width (GIMP_ITEM (layer)) == image->width) &&
|
||||
(gimp_item_height (GIMP_ITEM (layer)) == image->height) &&
|
||||
(! gimp_drawable_is_indexed (layer)) &&
|
||||
if (gimp_drawable_has_alpha (layer) &&
|
||||
(gimp_item_get_visible (GIMP_ITEM (layer))) &&
|
||||
(gimp_item_get_width (GIMP_ITEM (layer)) == image->width) &&
|
||||
(gimp_item_get_height (GIMP_ITEM (layer)) == image->height) &&
|
||||
(! gimp_drawable_is_indexed (layer)) &&
|
||||
(gimp_layer_get_opacity (GIMP_LAYER (layer)) == GIMP_OPACITY_OPAQUE))
|
||||
{
|
||||
gint xoff;
|
||||
@ -243,8 +243,8 @@ gimp_projection_construct_layers (GimpProjection *proj,
|
||||
|
||||
x1 = CLAMP (off_x, x, x + w);
|
||||
y1 = CLAMP (off_y, y, y + h);
|
||||
x2 = CLAMP (off_x + gimp_item_width (GIMP_ITEM (layer)), x, x + w);
|
||||
y2 = CLAMP (off_y + gimp_item_height (GIMP_ITEM (layer)), y, y + h);
|
||||
x2 = CLAMP (off_x + gimp_item_get_width (GIMP_ITEM (layer)), x, x + w);
|
||||
y2 = CLAMP (off_y + gimp_item_get_height (GIMP_ITEM (layer)), y, y + h);
|
||||
|
||||
/* configure the pixel regions */
|
||||
pixel_region_init (&src1PR, gimp_projection_get_tiles (proj),
|
||||
@ -402,8 +402,8 @@ gimp_projection_initialize (GimpProjection *proj,
|
||||
gimp_layer_get_opacity (GIMP_LAYER (item)) == GIMP_OPACITY_OPAQUE &&
|
||||
(off_x <= x) &&
|
||||
(off_y <= y) &&
|
||||
(off_x + gimp_item_width (item) >= x + w) &&
|
||||
(off_y + gimp_item_height (item) >= y + h))
|
||||
(off_x + gimp_item_get_width (item) >= x + w) &&
|
||||
(off_y + gimp_item_get_height (item) >= y + h))
|
||||
{
|
||||
coverage = TRUE;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user