From cfed1f28ea651053359f5515c042a67f9701ce08 Mon Sep 17 00:00:00 2001 From: William Skaggs Date: Fri, 3 Jun 2005 22:46:58 +0000 Subject: [PATCH] Bill Skaggs * app/core/gimpitem-align.c * app/core/gimpitem-align.h (gimp_item_align): remove push_undo arg, useless as pointed out by mitch. * app/tools/gimpaligntool.c: changed correspondingly. --- ChangeLog | 8 ++++++++ app/core/gimpitem-align.c | 7 ++----- app/core/gimpitem-align.h | 3 +-- app/tools/gimpaligntool.c | 6 ++---- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index d648d66ece..5c4c2694ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-06-03 Bill Skaggs + + * app/core/gimpitem-align.c + * app/core/gimpitem-align.h (gimp_item_align): remove push_undo + arg, useless as pointed out by mitch. + + * app/tools/gimpaligntool.c: changed correspondingly. + 2005-06-04 Michael Natterer * app/widgets/gimpcolorframe.[ch]: added API to show a number in diff --git a/app/core/gimpitem-align.c b/app/core/gimpitem-align.c index 0a4664a53d..8881387278 100644 --- a/app/core/gimpitem-align.c +++ b/app/core/gimpitem-align.c @@ -38,8 +38,6 @@ * @reference: The #GimpItem to align the target with. * @reference_alignment: The part of the reference item to align the target item with.. * @offset: How much to shift the target from perfect alignment.. - * @push_undo: If #TRUE, create an entry in the image's undo stack - * for this action. * * Aligns the target item with the reference item in the specified way. If * the reference item is #NULL, then the target item is aligned with the @@ -50,8 +48,7 @@ gimp_item_align (GimpItem *target, GimpAlignmentType target_alignment, GimpItem *reference, GimpAlignmentType reference_alignment, - gint offset, - gboolean push_undo) + gint offset) { gboolean do_x = FALSE; gboolean do_y = FALSE; @@ -157,5 +154,5 @@ gimp_item_align (GimpItem *target, ytranslate = y0 - y1 + offset; } - gimp_item_translate (target, xtranslate, ytranslate, push_undo); + gimp_item_translate (target, xtranslate, ytranslate, TRUE); } diff --git a/app/core/gimpitem-align.h b/app/core/gimpitem-align.h index e10841934d..0d9fc43ad8 100644 --- a/app/core/gimpitem-align.h +++ b/app/core/gimpitem-align.h @@ -23,7 +23,6 @@ void gimp_item_align (GimpItem *target, GimpAlignmentType target_alignment, GimpItem *refeence, GimpAlignmentType reference_alignment, - gint offset, - gboolean push_undo); + gint offset); #endif /* __GIMP_ITEM_ALIGN_H__ */ diff --git a/app/tools/gimpaligntool.c b/app/tools/gimpaligntool.c index 6b55672b63..80b817dd64 100644 --- a/app/tools/gimpaligntool.c +++ b/app/tools/gimpaligntool.c @@ -564,8 +564,7 @@ do_horizontal_alignment (GtkWidget *widget, align_tool->target_horz_align_type, align_tool->reference_item, align_tool->ref_horz_align_type, - align_tool->horz_offset, - TRUE); + align_tool->horz_offset); gimp_image_flush (GIMP_TOOL (align_tool)->gdisp->gimage); @@ -586,8 +585,7 @@ do_vertical_alignment (GtkWidget *widget, align_tool->target_vert_align_type, align_tool->reference_item, align_tool->ref_vert_align_type, - align_tool->vert_offset, - TRUE); + align_tool->vert_offset); gimp_image_flush (GIMP_TOOL (align_tool)->gdisp->gimage);