[gimp] app: don't call gimp_gegl_progress_connect() with a NULL text



commit 4f0521c7cfcb6f549cbe87d0a904b5a7cc3c1055
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 11 22:50:05 2016 +0200

    app: don't call gimp_gegl_progress_connect() with a NULL text

 app/core/gimpdrawable-blend.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
index 4a4c187..d135ba9 100644
--- a/app/core/gimpdrawable-blend.c
+++ b/app/core/gimpdrawable-blend.c
@@ -176,9 +176,6 @@ gimp_drawable_blend_shapeburst_distmap (GimpDrawable        *drawable,
 
   image = gimp_item_get_image (GIMP_ITEM (drawable));
 
-  if (progress)
-    gimp_progress_set_text_literal (progress, _("Calculating distance map"));
-
   /*  allocate the distance map  */
   dist_buffer = gegl_buffer_new (region, babl_format ("Y float"));
 
@@ -239,7 +236,8 @@ gimp_drawable_blend_shapeburst_distmap (GimpDrawable        *drawable,
                                       NULL);
 
   if (progress)
-    gimp_gegl_progress_connect (shapeburst, progress, NULL);
+    gimp_gegl_progress_connect (shapeburst, progress,
+                                _("Calculating distance map"));
 
   gimp_gegl_apply_operation (temp_buffer, NULL, NULL,
                              shapeburst,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]