[gimp] app: some cleanup and formatting in image crop and resize
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: some cleanup and formatting in image crop and resize
- Date: Sat, 22 Sep 2012 14:35:00 +0000 (UTC)
commit 3682006dfd11591866108225d7dc097d610fe37f
Author: Michael Natterer <mitch gimp org>
Date: Sat Sep 22 16:34:14 2012 +0200
app: some cleanup and formatting in image crop and resize
app/core/gimpimage-crop.c | 11 ++---------
app/core/gimpimage-resize.c | 17 ++++++-----------
2 files changed, 8 insertions(+), 20 deletions(-)
---
diff --git a/app/core/gimpimage-crop.c b/app/core/gimpimage-crop.c
index de7cd6a..6e32243 100644
--- a/app/core/gimpimage-crop.c
+++ b/app/core/gimpimage-crop.c
@@ -217,16 +217,9 @@ gimp_image_crop (GimpImage *image,
gimp_image_undo_group_end (image);
- gimp_image_invalidate (image,
- 0, 0,
- gimp_image_get_width (image),
- gimp_image_get_height (image));
-
gimp_image_size_changed_detailed (image,
- -x1,
- -y1,
- previous_width,
- previous_height);
+ -x1, -y1,
+ previous_width, previous_height);
g_object_thaw_notify (G_OBJECT (image));
diff --git a/app/core/gimpimage-resize.c b/app/core/gimpimage-resize.c
index 3a3c231..bb3581e 100644
--- a/app/core/gimpimage-resize.c
+++ b/app/core/gimpimage-resize.c
@@ -95,19 +95,16 @@ gimp_image_resize_with_layers (GimpImage *image,
progress_max = (gimp_container_get_n_children (gimp_image_get_layers (image)) +
gimp_container_get_n_children (gimp_image_get_channels (image)) +
gimp_container_get_n_children (gimp_image_get_vectors (image)) +
- g_list_length (resize_layers) +
+ g_list_length (resize_layers) +
1 /* selection */);
old_width = gimp_image_get_width (image);
old_height = gimp_image_get_height (image);
/* Push the image size to the stack */
- gimp_image_undo_push_image_size (image,
- NULL,
- -offset_x,
- -offset_y,
- new_width,
- new_height);
+ gimp_image_undo_push_image_size (image, NULL,
+ -offset_x, -offset_y,
+ new_width, new_height);
/* Set the new width and height */
g_object_set (image,
@@ -250,10 +247,8 @@ gimp_image_resize_with_layers (GimpImage *image,
gimp_image_undo_group_end (image);
gimp_image_size_changed_detailed (image,
- offset_x,
- offset_y,
- old_width,
- old_height);
+ offset_x, offset_y,
+ old_width, old_height);
g_object_thaw_notify (G_OBJECT (image));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]