Commit b7dace78 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

app/tools/gimpeditselectiontool.c app/tools/gimpiscissorstool.c

2007-12-21  Michael Natterer  <mitch@gimp.org>

	* app/tools/gimpeditselectiontool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimptexttool.c
	* app/tools/gimptransformtool.c: use accessors for drawable and
	item properties.


svn path=/trunk/; revision=24424
parent 1eaca542
2007-12-21 Michael Natterer <mitch@gimp.org>
* app/tools/gimpeditselectiontool.c
* app/tools/gimpiscissorstool.c
* app/tools/gimptexttool.c
* app/tools/gimptransformtool.c: use accessors for drawable and
item properties.
2007-12-21 Michael Natterer <mitch@gimp.org>
* app/xcf/xcf-save.c
......
......@@ -735,8 +735,8 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
FALSE,
edit_select->cumlx + off_x,
edit_select->cumly + off_y,
active_item->width,
active_item->height,
gimp_item_width (active_item),
gimp_item_height (active_item),
FALSE);
}
}
......
......@@ -532,7 +532,8 @@ iscissors_convert (GimpIscissorsTool *iscissors,
iscissors->mask = gimp_channel_new_mask (display->image,
display->image->width,
display->image->height);
gimp_scan_convert_render (sc, GIMP_DRAWABLE (iscissors->mask)->tiles,
gimp_scan_convert_render (sc,
gimp_drawable_get_tiles (GIMP_DRAWABLE (iscissors->mask)),
0, 0, options->antialias);
gimp_scan_convert_free (sc);
}
......
......@@ -280,8 +280,8 @@ gimp_text_tool_button_press (GimpTool *tool,
coords->x -= item->offset_x;
coords->y -= item->offset_y;
if (coords->x > 0 && coords->x < item->width &&
coords->y > 0 && coords->y < item->height)
if (coords->x > 0 && coords->x < gimp_item_width (item) &&
coords->y > 0 && coords->y < gimp_item_height (item))
{
/* did the user click on a text layer? */
if (gimp_text_tool_set_drawable (text_tool, drawable, TRUE))
......
......@@ -1216,7 +1216,7 @@ gimp_transform_tool_doit (GimpTransformTool *tr_tool,
break;
case GIMP_TRANSFORM_TYPE_SELECTION:
tr_tool->original = tile_manager_ref (GIMP_DRAWABLE (active_item)->tiles);
tr_tool->original = tile_manager_ref (gimp_drawable_get_tiles (GIMP_DRAWABLE (active_item)));
tile_manager_set_offsets (tr_tool->original, 0, 0);
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment