[gimp] app: adapt to the transform ops API change in GEGL
- From: Michael Muré <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: adapt to the transform ops API change in GEGL
- Date: Thu, 6 Jun 2013 17:58:54 +0000 (UTC)
commit c2da46d81082e4eec8c113931d92952a4bd74b26
Author: Michael Muré <batolettre gmail com>
Date: Thu Jun 6 19:56:06 2013 +0200
app: adapt to the transform ops API change in GEGL
app/gegl/gimp-gegl-apply-operation.c | 4 ++--
app/gegl/gimp-gegl-utils.c | 17 -----------------
app/gegl/gimp-gegl-utils.h | 2 --
app/paint/gimpperspectiveclone.c | 2 +-
4 files changed, 3 insertions(+), 22 deletions(-)
---
diff --git a/app/gegl/gimp-gegl-apply-operation.c b/app/gegl/gimp-gegl-apply-operation.c
index 348ec1c..5ebfb7f 100644
--- a/app/gegl/gimp-gegl-apply-operation.c
+++ b/app/gegl/gimp-gegl-apply-operation.c
@@ -289,7 +289,7 @@ gimp_gegl_apply_scale (GeglBuffer *src_buffer,
"operation", "gegl:scale",
"origin-x", 0.0,
"origin-y", 0.0,
- "filter", gimp_interpolation_to_gegl_filter (interpolation_type),
+ "sampler", interpolation_type,
"x", x,
"y", y,
NULL);
@@ -361,7 +361,7 @@ gimp_gegl_apply_transform (GeglBuffer *src_buffer,
node = gegl_node_new_child (NULL,
"operation", "gegl:transform",
- "filter", gimp_interpolation_to_gegl_filter (interpolation_type),
+ "sampler", interpolation_type,
NULL);
gimp_gegl_node_set_matrix (node, transform);
diff --git a/app/gegl/gimp-gegl-utils.c b/app/gegl/gimp-gegl-utils.c
index f005355..7f88d15 100644
--- a/app/gegl/gimp-gegl-utils.c
+++ b/app/gegl/gimp-gegl-utils.c
@@ -29,23 +29,6 @@
#include "gimp-gegl-utils.h"
-const gchar *
-gimp_interpolation_to_gegl_filter (GimpInterpolationType interpolation)
-{
- switch (interpolation)
- {
- case GIMP_INTERPOLATION_NONE: return "nearest";
- case GIMP_INTERPOLATION_LINEAR: return "linear";
- case GIMP_INTERPOLATION_CUBIC: return "cubic";
- case GIMP_INTERPOLATION_NOHALO: return "nohalo";
- case GIMP_INTERPOLATION_LOHALO: return "lohalo";
- default:
- break;
- }
-
- return "nearest";
-}
-
GType
gimp_gegl_get_op_enum_type (const gchar *operation,
const gchar *property)
diff --git a/app/gegl/gimp-gegl-utils.h b/app/gegl/gimp-gegl-utils.h
index 80fb74f..3ce22c8 100644
--- a/app/gegl/gimp-gegl-utils.h
+++ b/app/gegl/gimp-gegl-utils.h
@@ -22,8 +22,6 @@
#define __GIMP_GEGL_UTILS_H__
-const gchar * gimp_interpolation_to_gegl_filter (GimpInterpolationType interpolation) G_GNUC_CONST;
-
GType gimp_gegl_get_op_enum_type (const gchar *operation,
const gchar *property);
diff --git a/app/paint/gimpperspectiveclone.c b/app/paint/gimpperspectiveclone.c
index 78ef4bd..897dc15 100644
--- a/app/paint/gimpperspectiveclone.c
+++ b/app/paint/gimpperspectiveclone.c
@@ -231,7 +231,7 @@ gimp_perspective_clone_paint (GimpPaintCore *paint_core,
clone->transform_node =
gegl_node_new_child (clone->node,
"operation", "gegl:transform",
- "filter", gimp_interpolation_to_gegl_filter (GIMP_INTERPOLATION_LINEAR),
+ "sampler", GIMP_INTERPOLATION_LINEAR,
NULL);
clone->dest_node =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]