[gimp/gimp-2-10] app: fix progress text when applying shaped gradient through PDB
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix progress text when applying shaped gradient through PDB
- Date: Fri, 25 May 2018 16:44:59 +0000 (UTC)
commit 448fa97b851ff3af757cf07b70c8bb4abc6bcb3a
Author: Ell <ell_se yahoo com>
Date: Fri May 25 12:39:08 2018 -0400
app: fix progress text when applying shaped gradient through PDB
In gimp_drawable_gradient(), pass the undo description ("Gradient")
to gimp_gegl_apply_operation(), so that its displayed as the
progress text while rendering the gradient, even when applying a
shaped gradient, in which case we end the progress after
calculating the distance map, causing the progress text be NULL
during rendering unless explicitly set.
(cherry picked from commit deee2f14f541ede369314ddd3dbf317cb808303b)
app/core/gimpdrawable-gradient.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/core/gimpdrawable-gradient.c b/app/core/gimpdrawable-gradient.c
index c8a04690a6..cac7c1c08e 100644
--- a/app/core/gimpdrawable-gradient.c
+++ b/app/core/gimpdrawable-gradient.c
@@ -122,7 +122,7 @@ gimp_drawable_gradient (GimpDrawable *drawable,
"dither", dither,
NULL);
- gimp_gegl_apply_operation (shapeburst, progress, NULL,
+ gimp_gegl_apply_operation (shapeburst, progress, C_("undo-type", "Gradient"),
render,
buffer, GEGL_RECTANGLE (x, y, width, height),
FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]