mirror of https://github.com/GNOME/gimp.git
Bill Skaggs <weskaggs@primate.ucdavis.edu>
* 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.
This commit is contained in:
parent
39a8c9685a
commit
cfed1f28ea
|
@ -1,3 +1,11 @@
|
|||
2005-06-03 Bill Skaggs <weskaggs@primate.ucdavis.edu>
|
||||
|
||||
* 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 <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimpcolorframe.[ch]: added API to show a number in
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue