[gimp] app: fix progress text when applying shaped gradient through PDB



commit deee2f14f541ede369314ddd3dbf317cb808303b
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.

 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]