[gimp] app: updating the previous commit following enum update in GEGL.



commit acc0a97eed3f1f5cc9a7488d7bcc947d6b5a6ee1
Author: Jehan <jehan girinstud io>
Date:   Sat Mar 17 16:19:31 2018 +0100

    app: updating the previous commit following enum update in GEGL.
    
    Enums have been renamed to s/GEGL_DISTANCE_FOO/GEGL_DISTANCE_METRIC_FOO/
    Make the change in GIMP too.

 app/core/gimpdrawable-blend.c |    3 ++-
 app/tools/gimpblendoptions.c  |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimpdrawable-blend.c b/app/core/gimpdrawable-blend.c
index eba7194..d98b2f0 100644
--- a/app/core/gimpdrawable-blend.c
+++ b/app/core/gimpdrawable-blend.c
@@ -89,7 +89,8 @@ gimp_drawable_blend (GimpDrawable     *drawable,
        * API needs to stay compatible.
        */
       shapeburst =
-        gimp_drawable_blend_shapeburst_distmap (drawable, GEGL_DISTANCE_MANHATTAN,
+        gimp_drawable_blend_shapeburst_distmap (drawable,
+                                                GEGL_DISTANCE_METRIC_MANHATTAN,
                                                 GEGL_RECTANGLE (x, y, width, height),
                                                 progress);
     }
diff --git a/app/tools/gimpblendoptions.c b/app/tools/gimpblendoptions.c
index c7b5aee..40ecd29 100644
--- a/app/tools/gimpblendoptions.c
+++ b/app/tools/gimpblendoptions.c
@@ -101,7 +101,7 @@ gimp_blend_options_class_init (GimpBlendOptionsClass *klass)
                          _("Metric"),
                          _("Metric to use for the distance calculation"),
                          GEGL_TYPE_DISTANCE_METRIC,
-                         GEGL_DISTANCE_EUCLIDEAN,
+                         GEGL_DISTANCE_METRIC_EUCLIDEAN,
                          GIMP_PARAM_STATIC_STRINGS);
   GIMP_CONFIG_PROP_ENUM (object_class, PROP_GRADIENT_REPEAT,
                          "gradient-repeat",


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