app: rename all gimp_draw_tool_draw_foo() functions

to gimp_draw_tool_add_foo() because that's what they do now.
This commit is contained in:
Michael Natterer 2010-09-25 19:02:22 +02:00
parent 5089b9a706
commit b3af235e79
23 changed files with 622 additions and 617 deletions

View File

@ -665,8 +665,7 @@ gimp_align_tool_draw (GimpDrawTool *draw_tool)
w = MAX (align_tool->x1, align_tool->x0) - x;
h = MAX (align_tool->y1, align_tool->y0) - y;
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
x, y, w, h);
gimp_draw_tool_add_rectangle (draw_tool, FALSE, x, y, w, h);
for (list = align_tool->selected_objects;
list;
@ -696,16 +695,16 @@ gimp_align_tool_draw (GimpDrawTool *draw_tool)
h = gimp_item_get_height (item);
}
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x, y, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_NORTH_WEST);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x + w, y, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_NORTH_EAST);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x, y + h, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_SOUTH_WEST);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x + w, y + h, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_SOUTH_EAST);
}
@ -721,10 +720,10 @@ gimp_align_tool_draw (GimpDrawTool *draw_tool)
case GIMP_ORIENTATION_VERTICAL:
x = gimp_guide_get_position (guide);
h = gimp_image_get_height (image);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x, h, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_SOUTH);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
x, 0, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_NORTH);
break;
@ -732,10 +731,10 @@ gimp_align_tool_draw (GimpDrawTool *draw_tool)
case GIMP_ORIENTATION_HORIZONTAL:
y = gimp_guide_get_position (guide);
w = gimp_image_get_width (image);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
w, y, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_EAST);
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_FILLED_SQUARE,
0, y, MARKER_WIDTH, MARKER_WIDTH,
GTK_ANCHOR_WEST);
break;

View File

@ -380,14 +380,14 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
GimpBlendTool *blend_tool = GIMP_BLEND_TOOL (draw_tool);
/* Draw the line between the start and end coords */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
blend_tool->start_x,
blend_tool->start_y,
blend_tool->end_x,
blend_tool->end_y);
/* Draw start target */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
blend_tool->start_x,
blend_tool->start_y,
@ -396,7 +396,7 @@ gimp_blend_tool_draw (GimpDrawTool *draw_tool)
GTK_ANCHOR_CENTER);
/* Draw end target */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
blend_tool->end_x,
blend_tool->end_y,

View File

@ -336,14 +336,14 @@ gimp_brush_tool_draw_brush (GimpBrushTool *brush_tool,
#undef EPSILON
}
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
brush_core->transformed_brush_bound_segs,
brush_core->n_brush_bound_segs,
x, y);
}
else if (draw_fallback)
{
gimp_draw_tool_draw_handle (draw_tool, GIMP_HANDLE_CROSS,
gimp_draw_tool_add_handle (draw_tool, GIMP_HANDLE_CROSS,
x, y,
5, 5, GTK_ANCHOR_CENTER);
}

View File

@ -575,11 +575,11 @@ gimp_color_tool_draw (GimpDrawTool *draw_tool)
{
GimpImage *image = gimp_display_get_image (draw_tool->display);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
0, color_tool->sample_point_y + 0.5,
gimp_image_get_width (image),
color_tool->sample_point_y + 0.5);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
color_tool->sample_point_x + 0.5, 0,
color_tool->sample_point_x + 0.5,
gimp_image_get_height (image));
@ -591,7 +591,7 @@ gimp_color_tool_draw (GimpDrawTool *draw_tool)
{
gdouble radius = color_tool->options->average_radius;
gimp_draw_tool_draw_rectangle (draw_tool,
gimp_draw_tool_add_rectangle (draw_tool,
FALSE,
color_tool->center_x - radius,
color_tool->center_y - radius,

View File

@ -169,16 +169,6 @@ gimp_draw_tool_control (GimpTool *tool,
GIMP_TOOL_CLASS (parent_class)->control (tool, action, display);
}
static void
gimp_draw_tool_add_item (GimpDrawTool *draw_tool,
GimpCanvasItem *item)
{
if (! draw_tool->item)
draw_tool->item = gimp_canvas_group_new ();
gimp_canvas_group_add_item (GIMP_CANVAS_GROUP (draw_tool->item), item);
}
static void
gimp_draw_tool_clear_items (GimpDrawTool *draw_tool)
{
@ -371,8 +361,21 @@ gimp_draw_tool_calc_distance_square (GimpDrawTool *draw_tool,
return SQR (tx2 - tx1) + SQR (ty2 - ty1);
}
void
gimp_draw_tool_add_item (GimpDrawTool *draw_tool,
GimpCanvasItem *item)
{
g_return_if_fail (GIMP_IS_DRAW_TOOL (draw_tool));
g_return_if_fail (GIMP_IS_CANVAS_ITEM (draw_tool));
if (! draw_tool->item)
draw_tool->item = gimp_canvas_group_new ();
gimp_canvas_group_add_item (GIMP_CANVAS_GROUP (draw_tool->item), item);
}
/**
* gimp_draw_tool_draw_line:
* gimp_draw_tool_add_line:
* @draw_tool: the #GimpDrawTool
* @x1: start point X in image coordinates
* @y1: start point Y in image coordinates
@ -384,7 +387,7 @@ gimp_draw_tool_calc_distance_square (GimpDrawTool *draw_tool,
* coordindates.
**/
GimpCanvasItem *
gimp_draw_tool_draw_line (GimpDrawTool *draw_tool,
gimp_draw_tool_add_line (GimpDrawTool *draw_tool,
gdouble x1,
gdouble y1,
gdouble x2,
@ -411,7 +414,7 @@ gimp_draw_tool_draw_line (GimpDrawTool *draw_tool,
* This function draws a guide line across the canvas.
**/
GimpCanvasItem *
gimp_draw_tool_draw_guide_line (GimpDrawTool *draw_tool,
gimp_draw_tool_add_guide_line (GimpDrawTool *draw_tool,
GimpOrientationType orientation,
gint position)
{
@ -428,7 +431,7 @@ gimp_draw_tool_draw_guide_line (GimpDrawTool *draw_tool,
}
/**
* gimp_draw_tool_draw_rectangle:
* gimp_draw_tool_add_rectangle:
* @draw_tool: the #GimpDrawTool
* @filled: whether to fill the rectangle
* @x: horizontal image coordinate
@ -440,7 +443,7 @@ gimp_draw_tool_draw_guide_line (GimpDrawTool *draw_tool,
* screen window coordinates, then draws the resulting rectangle.
**/
GimpCanvasItem *
gimp_draw_tool_draw_rectangle (GimpDrawTool *draw_tool,
gimp_draw_tool_add_rectangle (GimpDrawTool *draw_tool,
gboolean filled,
gdouble x,
gdouble y,
@ -460,7 +463,7 @@ gimp_draw_tool_draw_rectangle (GimpDrawTool *draw_tool,
}
GimpCanvasItem *
gimp_draw_tool_draw_arc (GimpDrawTool *draw_tool,
gimp_draw_tool_add_arc (GimpDrawTool *draw_tool,
gboolean filled,
gdouble x,
gdouble y,
@ -488,7 +491,7 @@ gimp_draw_tool_draw_arc (GimpDrawTool *draw_tool,
}
GimpCanvasItem *
gimp_draw_tool_draw_handle (GimpDrawTool *draw_tool,
gimp_draw_tool_add_handle (GimpDrawTool *draw_tool,
GimpHandleType type,
gdouble x,
gdouble y,
@ -509,7 +512,7 @@ gimp_draw_tool_draw_handle (GimpDrawTool *draw_tool,
}
/**
* gimp_draw_tool_draw_corner:
* gimp_draw_tool_add_corner:
* @draw_tool: the #GimpDrawTool
* @highlight:
* @put_outside: whether to put the handles on the outside of the rectangle
@ -526,7 +529,7 @@ gimp_draw_tool_draw_handle (GimpDrawTool *draw_tool,
* rectangle outline, taking care of not drawing over an already drawn line.
**/
GimpCanvasItem *
gimp_draw_tool_draw_corner (GimpDrawTool *draw_tool,
gimp_draw_tool_add_corner (GimpDrawTool *draw_tool,
gboolean highlight,
gboolean put_outside,
gdouble x1,
@ -552,7 +555,7 @@ gimp_draw_tool_draw_corner (GimpDrawTool *draw_tool,
}
GimpCanvasItem *
gimp_draw_tool_draw_lines (GimpDrawTool *draw_tool,
gimp_draw_tool_add_lines (GimpDrawTool *draw_tool,
const GimpVector2 *points,
gint n_points,
gboolean filled)
@ -573,7 +576,7 @@ gimp_draw_tool_draw_lines (GimpDrawTool *draw_tool,
}
GimpCanvasItem *
gimp_draw_tool_draw_strokes (GimpDrawTool *draw_tool,
gimp_draw_tool_add_strokes (GimpDrawTool *draw_tool,
const GimpCoords *points,
gint n_points,
gboolean filled)
@ -594,7 +597,7 @@ gimp_draw_tool_draw_strokes (GimpDrawTool *draw_tool,
}
/**
* gimp_draw_tool_draw_boundary:
* gimp_draw_tool_add_boundary:
* @draw_tool: a #GimpDrawTool
* @bound_segs: the sorted brush outline
* @n_bound_segs: the number of segments in @bound_segs
@ -607,7 +610,7 @@ gimp_draw_tool_draw_strokes (GimpDrawTool *draw_tool,
* indicate the end of connected segment sequences (groups) .
*/
GimpCanvasItem *
gimp_draw_tool_draw_boundary (GimpDrawTool *draw_tool,
gimp_draw_tool_add_boundary (GimpDrawTool *draw_tool,
const BoundSeg *bound_segs,
gint n_bound_segs,
gdouble offset_x,
@ -629,7 +632,7 @@ gimp_draw_tool_draw_boundary (GimpDrawTool *draw_tool,
}
GimpCanvasItem *
gimp_draw_tool_draw_text_cursor (GimpDrawTool *draw_tool,
gimp_draw_tool_add_text_cursor (GimpDrawTool *draw_tool,
PangoRectangle *cursor,
gboolean overwrite)
{

View File

@ -82,21 +82,23 @@ gdouble gimp_draw_tool_calc_distance_square (GimpDrawTool *draw_too
gdouble x2,
gdouble y2);
GimpCanvasItem * gimp_draw_tool_draw_line (GimpDrawTool *draw_tool,
void gimp_draw_tool_add_item (GimpDrawTool *draw_tool,
GimpCanvasItem *item);
GimpCanvasItem * gimp_draw_tool_add_line (GimpDrawTool *draw_tool,
gdouble x1,
gdouble y1,
gdouble x2,
gdouble y2);
GimpCanvasItem * gimp_draw_tool_draw_guide_line (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_guide_line (GimpDrawTool *draw_tool,
GimpOrientationType orientation,
gint position);
GimpCanvasItem * gimp_draw_tool_draw_rectangle (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_rectangle (GimpDrawTool *draw_tool,
gboolean filled,
gdouble x,
gdouble y,
gdouble width,
gdouble height);
GimpCanvasItem * gimp_draw_tool_draw_arc (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_arc (GimpDrawTool *draw_tool,
gboolean filled,
gdouble x,
gdouble y,
@ -105,14 +107,14 @@ GimpCanvasItem * gimp_draw_tool_draw_arc (GimpDrawTool *draw_too
gdouble start_angle,
gdouble slice_angle);
GimpCanvasItem * gimp_draw_tool_draw_handle (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_handle (GimpDrawTool *draw_tool,
GimpHandleType type,
gdouble x,
gdouble y,
gint width,
gint height,
GtkAnchorType anchor);
GimpCanvasItem * gimp_draw_tool_draw_corner (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_corner (GimpDrawTool *draw_tool,
gboolean highlight,
gboolean put_outside,
gdouble x1,
@ -122,23 +124,23 @@ GimpCanvasItem * gimp_draw_tool_draw_corner (GimpDrawTool *draw_too
gint width,
gint height,
GtkAnchorType anchor);
GimpCanvasItem * gimp_draw_tool_draw_lines (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_lines (GimpDrawTool *draw_tool,
const GimpVector2 *points,
gint n_points,
gboolean filled);
GimpCanvasItem * gimp_draw_tool_draw_strokes (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_strokes (GimpDrawTool *draw_tool,
const GimpCoords *points,
gint n_points,
gboolean filled);
GimpCanvasItem * gimp_draw_tool_draw_boundary (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_boundary (GimpDrawTool *draw_tool,
const BoundSeg *bound_segs,
gint n_bound_segs,
gdouble offset_x,
gdouble offset_y);
GimpCanvasItem * gimp_draw_tool_draw_text_cursor (GimpDrawTool *draw_tool,
GimpCanvasItem * gimp_draw_tool_add_text_cursor (GimpDrawTool *draw_tool,
PangoRectangle *cursor,
gboolean overwrite);

View File

@ -812,7 +812,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
if (! floating_sel && edit_select->segs_in)
{
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
edit_select->segs_in,
edit_select->num_segs_in,
edit_select->cumlx + off_x,
@ -821,7 +821,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
if (edit_select->segs_out)
{
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
edit_select->segs_out,
edit_select->num_segs_out,
edit_select->cumlx + off_x,
@ -829,7 +829,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
}
else if (edit_select->edit_mode != GIMP_TRANSLATE_MODE_MASK)
{
gimp_draw_tool_draw_rectangle (draw_tool,
gimp_draw_tool_add_rectangle (draw_tool,
FALSE,
edit_select->cumlx + off_x,
edit_select->cumly + off_y,
@ -847,7 +847,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
gimp_item_get_offset (active_item, &off_x, &off_y);
gimp_draw_tool_draw_rectangle (draw_tool,
gimp_draw_tool_add_rectangle (draw_tool,
FALSE,
edit_select->x1 + off_x,
edit_select->y1 + off_y,
@ -903,7 +903,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
g_list_free (linked);
}
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
gimp_draw_tool_add_rectangle (draw_tool, FALSE,
x1, y1,
x2 - x1, y2 - y1);
}
@ -955,14 +955,14 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
x2 = ceil (x2);
y2 = ceil (y2);
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
gimp_draw_tool_add_rectangle (draw_tool, FALSE,
x1, y1,
x2 - x1, y2 - y1);
}
break;
case GIMP_TRANSLATE_MODE_FLOATING_SEL:
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
edit_select->segs_in,
edit_select->num_segs_in,
edit_select->cumlx,
@ -971,7 +971,7 @@ gimp_edit_selection_tool_draw (GimpDrawTool *draw_tool)
}
/* Mark the center because we snap to it */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
edit_select->center_x + edit_select->cumlx,
edit_select->center_y + edit_select->cumly,

View File

@ -110,7 +110,7 @@ gimp_ellipse_select_tool_draw (GimpDrawTool *draw_tool)
"y2", &y2,
NULL);
gimp_draw_tool_draw_arc (draw_tool,
gimp_draw_tool_add_arc (draw_tool,
FALSE,
x1, y1,
x2 - x1, y2 - y1,

View File

@ -606,13 +606,13 @@ gimp_foreground_select_tool_draw (GimpDrawTool *draw_tool)
if (x < x1 + radius || x > x2 - radius ||
y < y1 + radius || y > y2 - radius)
{
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
gimp_draw_tool_add_rectangle (draw_tool, FALSE,
x1, y1,
x2 - x1, y2 - y1);
}
}
gimp_draw_tool_draw_arc (draw_tool, FALSE,
gimp_draw_tool_add_arc (draw_tool, FALSE,
x - radius, y - radius,
2 * radius, 2 * radius,
0.0, 2.0 * G_PI);

View File

@ -1541,7 +1541,7 @@ gimp_free_select_tool_draw (GimpDrawTool *draw_tool)
tool->display,
NO_CLICK_TIME_AVAILABLE,
&coords);
gimp_draw_tool_draw_lines (draw_tool,
gimp_draw_tool_add_lines (draw_tool,
priv->points, priv->n_points,
FALSE);
@ -1592,7 +1592,7 @@ gimp_free_select_tool_draw (GimpDrawTool *draw_tool)
handle_type = GIMP_HANDLE_CIRCLE;
if (handle_type != -1)
gimp_draw_tool_draw_handle (draw_tool, handle_type,
gimp_draw_tool_add_handle (draw_tool, handle_type,
point->x,
point->y,
HANDLE_SIZE, HANDLE_SIZE,
@ -1604,7 +1604,7 @@ gimp_free_select_tool_draw (GimpDrawTool *draw_tool)
{
GimpVector2 last = priv->points[priv->n_points - 1];
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
last.x,
last.y,
priv->pending_point.x,

View File

@ -749,7 +749,7 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
/* Draw the crosshairs target if we're placing a seed */
if (iscissors->draw & DRAW_CURRENT_SEED)
{
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
iscissors->x, iscissors->y,
TARGET_SIZE, TARGET_SIZE,
@ -758,7 +758,7 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
/* Draw a line boundary */
if (! iscissors->first_point && ! (iscissors->draw & DRAW_LIVEWIRE))
{
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
iscissors->ix, iscissors->iy,
iscissors->x, iscissors->y);
}
@ -808,7 +808,7 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
/* Draw a point at the init point coordinates */
if (! iscissors->connected)
{
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_FILLED_CIRCLE,
iscissors->ix,
iscissors->iy,
@ -831,7 +831,7 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
continue;
}
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_FILLED_CIRCLE,
curve->x1,
curve->y1,
@ -856,22 +856,23 @@ gimp_iscissors_tool_draw (GimpDrawTool *draw_tool)
/* plot both curves, and the control point between them */
if (iscissors->curve1)
{
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
iscissors->curve1->x2,
iscissors->curve1->y2,
iscissors->nx,
iscissors->ny);
}
if (iscissors->curve2)
{
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
iscissors->curve2->x1,
iscissors->curve2->y1,
iscissors->nx,
iscissors->ny);
}
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_FILLED_CIRCLE,
iscissors->nx,
iscissors->ny,
@ -905,7 +906,7 @@ iscissors_draw_curve (GimpDrawTool *draw_tool,
points[i].y = (coords >> 16);
}
gimp_draw_tool_draw_lines (draw_tool, points, len, FALSE);
gimp_draw_tool_add_lines (draw_tool, points, len, FALSE);
g_free (points);
}

View File

@ -362,7 +362,7 @@ gimp_magnify_tool_draw (GimpDrawTool *draw_tool)
{
GimpMagnifyTool *magnify = GIMP_MAGNIFY_TOOL (draw_tool);
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
gimp_draw_tool_add_rectangle (draw_tool, FALSE,
magnify->x,
magnify->y,
magnify->w,

View File

@ -670,7 +670,7 @@ gimp_measure_tool_draw (GimpDrawTool *draw_tool)
{
if (i == 0 && measure->num_points == 3)
{
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CIRCLE,
measure->x[i],
measure->y[i],
@ -680,7 +680,7 @@ gimp_measure_tool_draw (GimpDrawTool *draw_tool)
}
else
{
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
measure->x[i],
measure->y[i],
@ -691,7 +691,7 @@ gimp_measure_tool_draw (GimpDrawTool *draw_tool)
if (i > 0)
{
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
measure->x[0],
measure->y[0],
measure->x[i],
@ -724,7 +724,7 @@ gimp_measure_tool_draw (GimpDrawTool *draw_tool)
{
GimpCanvasItem *item;
item = gimp_draw_tool_draw_handle (draw_tool,
item = gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CIRCLE,
measure->x[0],
measure->y[0],
@ -746,7 +746,7 @@ gimp_measure_tool_draw (GimpDrawTool *draw_tool)
target = FUNSCALEX (shell, (TARGET >> 1));
arc_radius = FUNSCALEX (shell, ARC_RADIUS);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
measure->x[0],
measure->y[0],
(measure->x[1] >= measure->x[0] ?

View File

@ -794,7 +794,7 @@ gimp_move_tool_draw (GimpDrawTool *draw_tool)
if (move->moving_guide && move->guide_position != -1)
{
gimp_draw_tool_draw_guide_line (draw_tool,
gimp_draw_tool_add_guide_line (draw_tool,
move->guide_orientation,
move->guide_position);
}

View File

@ -720,14 +720,14 @@ gimp_paint_tool_draw (GimpDrawTool *draw_tool)
gimp_item_get_offset (GIMP_ITEM (drawable), &off_x, &off_y);
/* Draw the line between the start and end coords */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
core->last_coords.x + off_x,
core->last_coords.y + off_y,
core->cur_coords.x + off_x,
core->cur_coords.y + off_y);
/* Draw start target */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
core->last_coords.x + off_x,
core->last_coords.y + off_y,
@ -736,7 +736,7 @@ gimp_paint_tool_draw (GimpDrawTool *draw_tool)
GTK_ANCHOR_CENTER);
/* Draw end target */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
core->cur_coords.x + off_x,
core->cur_coords.y + off_y,

View File

@ -747,36 +747,36 @@ gimp_perspective_clone_tool_draw (GimpDrawTool *draw_tool)
if (clone_tool->use_handles)
{
/* draw the bounding box */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
clone_tool->tx1, clone_tool->ty1,
clone_tool->tx2, clone_tool->ty2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
clone_tool->tx2, clone_tool->ty2,
clone_tool->tx4, clone_tool->ty4);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
clone_tool->tx3, clone_tool->ty3,
clone_tool->tx4, clone_tool->ty4);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
clone_tool->tx3, clone_tool->ty3,
clone_tool->tx1, clone_tool->ty1);
/* draw the tool handles */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
clone_tool->tx1, clone_tool->ty1,
HANDLE_SIZE, HANDLE_SIZE,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
clone_tool->tx2, clone_tool->ty2,
HANDLE_SIZE, HANDLE_SIZE,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
clone_tool->tx3, clone_tool->ty3,
HANDLE_SIZE, HANDLE_SIZE,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
clone_tool->tx4, clone_tool->ty4,
HANDLE_SIZE, HANDLE_SIZE,
@ -791,7 +791,7 @@ gimp_perspective_clone_tool_draw (GimpDrawTool *draw_tool)
tmp_display = draw_tool->display;
draw_tool->display = clone_tool->src_display;
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
clone_tool->src_x,
clone_tool->src_y,

View File

@ -310,22 +310,22 @@ gimp_rectangle_select_tool_draw (GimpDrawTool *draw_tool)
square_size = (int) (radius * 2);
gimp_draw_tool_draw_arc (draw_tool, FALSE,
gimp_draw_tool_add_arc (draw_tool, FALSE,
x1, y1,
square_size, square_size,
G_PI / 2.0, G_PI / 2.0);
gimp_draw_tool_draw_arc (draw_tool, FALSE,
gimp_draw_tool_add_arc (draw_tool, FALSE,
x2 - square_size, y1,
square_size, square_size,
0.0, G_PI / 2.0);
gimp_draw_tool_draw_arc (draw_tool, FALSE,
gimp_draw_tool_add_arc (draw_tool, FALSE,
x2 - square_size, y2 - square_size,
square_size, square_size,
G_PI * 1.5, G_PI / 2.0);
gimp_draw_tool_draw_arc (draw_tool, FALSE,
gimp_draw_tool_add_arc (draw_tool, FALSE,
x1, y2 - square_size,
square_size, square_size,
G_PI, G_PI / 2.0);

View File

@ -1736,7 +1736,7 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
gimp_rectangle_tool_draw_guides (draw_tool);
gimp_draw_tool_draw_rectangle (draw_tool, FALSE,
gimp_draw_tool_add_rectangle (draw_tool, FALSE,
pub_x1,
pub_y1,
pub_x2 - pub_x1,
@ -1749,7 +1749,7 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
if (gimp_tool_control_is_active (tool->control))
{
/* Mark the center because we snap to it */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
(pub_x1 + pub_x2) / 2.0,
(pub_y1 + pub_y2) / 2.0,
@ -1765,25 +1765,25 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
case GIMP_RECTANGLE_TOOL_DEAD:
case GIMP_RECTANGLE_TOOL_CREATING:
gimp_draw_tool_draw_corner (draw_tool, FALSE, private->narrow_mode,
gimp_draw_tool_add_corner (draw_tool, FALSE, private->narrow_mode,
pub_x1, pub_y1,
pub_x2, pub_y2,
private->corner_handle_w,
private->corner_handle_h,
GTK_ANCHOR_NORTH_WEST);
gimp_draw_tool_draw_corner (draw_tool, FALSE, private->narrow_mode,
gimp_draw_tool_add_corner (draw_tool, FALSE, private->narrow_mode,
pub_x1, pub_y1,
pub_x2, pub_y2,
private->corner_handle_w,
private->corner_handle_h,
GTK_ANCHOR_NORTH_EAST);
gimp_draw_tool_draw_corner (draw_tool, FALSE, private->narrow_mode,
gimp_draw_tool_add_corner (draw_tool, FALSE, private->narrow_mode,
pub_x1, pub_y1,
pub_x2, pub_y2,
private->corner_handle_w,
private->corner_handle_h,
GTK_ANCHOR_SOUTH_WEST);
gimp_draw_tool_draw_corner (draw_tool, FALSE, private->narrow_mode,
gimp_draw_tool_add_corner (draw_tool, FALSE, private->narrow_mode,
pub_x1, pub_y1,
pub_x2, pub_y2,
private->corner_handle_w,
@ -1793,7 +1793,7 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
case GIMP_RECTANGLE_TOOL_RESIZING_TOP:
case GIMP_RECTANGLE_TOOL_RESIZING_BOTTOM:
gimp_draw_tool_draw_corner (draw_tool,
gimp_draw_tool_add_corner (draw_tool,
! gimp_tool_control_is_active (tool->control),
private->narrow_mode,
pub_x1, pub_y1,
@ -1805,7 +1805,7 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
case GIMP_RECTANGLE_TOOL_RESIZING_LEFT:
case GIMP_RECTANGLE_TOOL_RESIZING_RIGHT:
gimp_draw_tool_draw_corner (draw_tool,
gimp_draw_tool_add_corner (draw_tool,
! gimp_tool_control_is_active (tool->control),
private->narrow_mode,
pub_x1, pub_y1,
@ -1816,7 +1816,7 @@ gimp_rectangle_tool_draw (GimpDrawTool *draw_tool)
break;
default:
gimp_draw_tool_draw_corner (draw_tool,
gimp_draw_tool_add_corner (draw_tool,
! gimp_tool_control_is_active (tool->control),
private->narrow_mode,
pub_x1, pub_y1,
@ -1846,73 +1846,73 @@ gimp_rectangle_tool_draw_guides (GimpDrawTool *draw_tool)
break;
case GIMP_RECTANGLE_GUIDE_CENTER_LINES:
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, (y1 + y2) / 2,
x2, (y1 + y2) / 2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
(x1 + x2) / 2, y1,
(x1 + x2) / 2, y2);
break;
case GIMP_RECTANGLE_GUIDE_THIRDS:
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, (2 * y1 + y2) / 3,
x2, (2 * y1 + y2) / 3);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, (y1 + 2 * y2) / 3,
x2, (y1 + 2 * y2) / 3);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
(2 * x1 + x2) / 3, y1,
(2 * x1 + x2) / 3, y2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
(x1 + 2 * x2) / 3, y1,
(x1 + 2 * x2) / 3, y2);
break;
case GIMP_RECTANGLE_GUIDE_FIFTHS:
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y1 + (y2 - y1) / 5,
x2, y1 + (y2 - y1) / 5);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y1 + 2 * (y2 - y1) / 5,
x2, y1 + 2 * (y2 - y1) / 5);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y1 + 3 * (y2 - y1) / 5,
x2, y1 + 3 * (y2 - y1) / 5);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y1 + 4 * (y2 - y1) / 5,
x2, y1 + 4 * (y2 - y1) / 5);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1 + (x2 - x1) / 5, y1,
x1 + (x2 - x1) / 5, y2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1 + 2 * (x2 - x1) / 5, y1,
x1 + 2 * (x2 - x1) / 5, y2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1 + 3 * (x2 - x1) / 5, y1,
x1 + 3 * (x2 - x1) / 5, y2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1 + 4 * (x2 - x1) / 5, y1,
x1 + 4 * (x2 - x1) / 5, y2);
break;
case GIMP_RECTANGLE_GUIDE_GOLDEN:
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1,
(2 * y1 + (1 + SQRT5) * y2) / (3 + SQRT5),
x2,
(2 * y1 + (1 + SQRT5) * y2) / (3 + SQRT5));
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1,
((1 + SQRT5) * y1 + 2 * y2) / (3 + SQRT5),
x2,
((1 + SQRT5) * y1 + 2 * y2) / (3 + SQRT5));
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
(2 * x1 + (1 + SQRT5) * x2) / (3 + SQRT5),
y1,
(2 * x1 + (1 + SQRT5) * x2) / (3 + SQRT5),
y2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
((1 + SQRT5) * x1 + 2 * x2) / (3 + SQRT5),
y1,
((1 + SQRT5) * x1 + 2 * x2) / (3 + SQRT5),
@ -1930,12 +1930,12 @@ gimp_rectangle_tool_draw_guides (GimpDrawTool *draw_tool)
const gdouble square_side = MIN (x2 - x1, y2 - y1);
/* diagonal from the top-left edge */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y1,
x1 + square_side, y1 + square_side);
/* diagonal from the top-right edge */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x2, y1,
x2 - square_side, y1 + square_side);
@ -1945,12 +1945,12 @@ gimp_rectangle_tool_draw_guides (GimpDrawTool *draw_tool)
if ((x1 + square_side != x2) || (y1 + square_side != y2))
{
/* diagonal from the bottom-left edge */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x1, y2,
x1 + square_side, y2 - square_side);
/* diagonal from the bottom-right edge */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
x2, y2,
x2 - square_side, y2 - square_side);
}

View File

@ -328,7 +328,7 @@ gimp_region_select_tool_draw (GimpDrawTool *draw_tool)
gimp_item_get_offset (GIMP_ITEM (drawable), &off_x, &off_y);
}
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
region_sel->segs,
region_sel->n_segs,
off_x, off_y);

View File

@ -382,7 +382,7 @@ gimp_source_tool_draw (GimpDrawTool *draw_tool)
source_tool->src_y + off_y,
FALSE);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
source_tool->src_x + off_x,
source_tool->src_y + off_y,

View File

@ -813,7 +813,7 @@ gimp_text_tool_draw (GimpDrawTool *draw_tool)
overwrite = text_tool->overwrite_mode && cursor_rect.width > 0;
gimp_draw_tool_draw_text_cursor (draw_tool, &cursor_rect, overwrite);
gimp_draw_tool_add_text_cursor (draw_tool, &cursor_rect, overwrite);
}
}
@ -871,7 +871,7 @@ gimp_text_tool_draw_selection (GimpDrawTool *draw_tool)
rect.x += offset_x;
rect.y += offset_y;
gimp_draw_tool_draw_rectangle (draw_tool, TRUE,
gimp_draw_tool_add_rectangle (draw_tool, TRUE,
rect.x, rect.y,
rect.width, rect.height);
}

View File

@ -809,7 +809,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
for (i = 0, gci = 0; i < k; i++, gci += 4)
{
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
tr_tool->tgrid_coords[gci],
tr_tool->tgrid_coords[gci + 1],
tr_tool->tgrid_coords[gci + 2],
@ -818,16 +818,16 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
}
/* draw the bounding box */
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
tr_tool->tx1, tr_tool->ty1,
tr_tool->tx2, tr_tool->ty2);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
tr_tool->tx2, tr_tool->ty2,
tr_tool->tx4, tr_tool->ty4);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
tr_tool->tx3, tr_tool->ty3,
tr_tool->tx4, tr_tool->ty4);
gimp_draw_tool_draw_line (draw_tool,
gimp_draw_tool_add_line (draw_tool,
tr_tool->tx3, tr_tool->ty3,
tr_tool->tx1, tr_tool->ty1);
@ -838,22 +838,22 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
if (tr_tool->use_handles)
{
/* draw the tool handles */
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
tr_tool->tx1, tr_tool->ty1,
tr_tool->handle_w, tr_tool->handle_h,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
tr_tool->tx2, tr_tool->ty2,
tr_tool->handle_w, tr_tool->handle_h,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
tr_tool->tx3, tr_tool->ty3,
tr_tool->handle_w, tr_tool->handle_h,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
tr_tool->tx4, tr_tool->ty4,
tr_tool->handle_w, tr_tool->handle_h,
@ -866,7 +866,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
x = (tr_tool->tx1 + tr_tool->tx2) / 2.0;
y = (tr_tool->ty1 + tr_tool->ty2) / 2.0;
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
x, y,
tr_tool->handle_w, tr_tool->handle_h,
@ -875,7 +875,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
x = (tr_tool->tx2 + tr_tool->tx4) / 2.0;
y = (tr_tool->ty2 + tr_tool->ty4) / 2.0;
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
x, y,
tr_tool->handle_w, tr_tool->handle_h,
@ -884,7 +884,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
x = (tr_tool->tx3 + tr_tool->tx4) / 2.0;
y = (tr_tool->ty3 + tr_tool->ty4) / 2.0;
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
x, y,
tr_tool->handle_w, tr_tool->handle_h,
@ -893,7 +893,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
x = (tr_tool->tx3 + tr_tool->tx1) / 2.0;
y = (tr_tool->ty3 + tr_tool->ty1) / 2.0;
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
x, y,
tr_tool->handle_w, tr_tool->handle_h,
@ -906,12 +906,12 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
{
gint d = MIN (tr_tool->handle_w, tr_tool->handle_h);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CIRCLE,
tr_tool->tcx, tr_tool->tcy,
d, d,
GTK_ANCHOR_CENTER);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_CROSS,
tr_tool->tcx, tr_tool->tcy,
d, d,
@ -966,7 +966,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
}
}
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
segs_in, num_segs_in,
0, 0);
g_free (segs_in);
@ -997,7 +997,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
}
}
gimp_draw_tool_draw_boundary (draw_tool,
gimp_draw_tool_add_boundary (draw_tool,
segs_out, num_segs_out,
0, 0);
g_free (segs_out);
@ -1036,7 +1036,7 @@ gimp_transform_tool_draw (GimpDrawTool *draw_tool)
&curr->x, &curr->y);
}
gimp_draw_tool_draw_strokes (draw_tool,
gimp_draw_tool_add_strokes (draw_tool,
&g_array_index (coords,
GimpCoords, 0),
coords->len, FALSE);

View File

@ -1424,7 +1424,7 @@ gimp_vector_tool_draw (GimpDrawTool *draw_tool)
if (coords)
{
if (coords->len)
gimp_draw_tool_draw_strokes (draw_tool,
gimp_draw_tool_add_strokes (draw_tool,
&g_array_index (coords,
GimpCoords, 0),
coords->len, FALSE);
@ -1442,7 +1442,7 @@ gimp_vector_tool_draw (GimpDrawTool *draw_tool)
if (cur_anchor->type == GIMP_ANCHOR_ANCHOR)
{
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
cur_anchor->selected ?
GIMP_HANDLE_CIRCLE :
GIMP_HANDLE_FILLED_CIRCLE,
@ -1471,7 +1471,7 @@ gimp_vector_tool_draw (GimpDrawTool *draw_tool)
{
GimpCanvasItem *item;
item = gimp_draw_tool_draw_line
item = gimp_draw_tool_add_line
(draw_tool,
g_array_index (coords, GimpCoords, i).x,
g_array_index (coords, GimpCoords, i).y,
@ -1492,7 +1492,7 @@ gimp_vector_tool_draw (GimpDrawTool *draw_tool)
{
cur_anchor = GIMP_ANCHOR (list->data);
gimp_draw_tool_draw_handle (draw_tool,
gimp_draw_tool_add_handle (draw_tool,
GIMP_HANDLE_SQUARE,
cur_anchor->position.x,
cur_anchor->position.y,
@ -1541,7 +1541,7 @@ gimp_vector_tool_vectors_visible (GimpVectors *vectors,
if (coords)
{
if (coords->len)
gimp_draw_tool_draw_strokes (draw_tool,
gimp_draw_tool_add_strokes (draw_tool,
&g_array_index (coords,
GimpCoords, 0),
coords->len, FALSE);