[gimp] app: call gimp_progress_end() at gimp_image_convert_dither_u8() exit
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: call gimp_progress_end() at gimp_image_convert_dither_u8() exit
- Date: Thu, 29 Mar 2018 07:31:31 +0000 (UTC)
commit 9cabee5451bed56631db060d2eed19f664989766
Author: Ell <ell_se yahoo com>
Date: Thu Mar 29 03:01:23 2018 -0400
app: call gimp_progress_end() at gimp_image_convert_dither_u8() exit
app/core/gimpimage-convert-precision.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/app/core/gimpimage-convert-precision.c b/app/core/gimpimage-convert-precision.c
index 07b5300..3cfd1bb 100644
--- a/app/core/gimpimage-convert-precision.c
+++ b/app/core/gimpimage-convert-precision.c
@@ -259,6 +259,7 @@ gimp_image_convert_dither_u8 (GimpImage *image,
if (dither)
{
GimpObjectQueue *queue;
+ GimpProgress *sub_progress;
GList *layers;
GList *list;
GimpDrawable *drawable;
@@ -266,8 +267,8 @@ gimp_image_convert_dither_u8 (GimpImage *image,
if (progress)
gimp_progress_start (progress, FALSE, "%s", _("Dithering"));
- queue = gimp_object_queue_new (progress);
- progress = GIMP_PROGRESS (queue);
+ queue = gimp_object_queue_new (progress);
+ sub_progress = GIMP_PROGRESS (queue);
layers = gimp_image_get_layer_list (image);
@@ -284,13 +285,16 @@ gimp_image_convert_dither_u8 (GimpImage *image,
while ((drawable = gimp_object_queue_pop (queue)))
{
- gimp_drawable_apply_operation (drawable, progress,
+ gimp_drawable_apply_operation (drawable, sub_progress,
_("Dithering"),
dither);
}
g_object_unref (queue);
+ if (progress)
+ gimp_progress_end (progress);
+
g_object_unref (dither);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]