[gimp/soc-2011-warp] warptool: use the warp operator imported to gegl



commit 67bf41139b5a350fc147d8553e75f6867c95b822
Author: Michael Murà <mure michael gmail com>
Date:   Sat Jul 9 23:58:45 2011 +0200

    warptool: use the warp operator imported to gegl

 app/tools/gimpwarpoptions.c |    4 ++--
 app/tools/gimpwarpoptions.h |    4 ++--
 app/tools/gimpwarptool.c    |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/tools/gimpwarpoptions.c b/app/tools/gimpwarpoptions.c
index c9bb508..44b7b88 100644
--- a/app/tools/gimpwarpoptions.c
+++ b/app/tools/gimpwarpoptions.c
@@ -88,8 +88,8 @@ gimp_warp_options_class_init (GimpWarpOptionsClass *klass)
   GIMP_CONFIG_INSTALL_PROP_ENUM (object_class, PROP_BEHAVIOR,
                                  "behavior",
                                  N_("Behavior"),
-                                 GIMP_TYPE_WARP_BEHAVIOR,
-                                 GIMP_WARP_BEHAVIOR_MOVE,
+                                 GEGL_TYPE_WARP_BEHAVIOR,
+                                 GEGL_WARP_BEHAVIOR_MOVE,
                                  GIMP_PARAM_STATIC_STRINGS);
 }
 
diff --git a/app/tools/gimpwarpoptions.h b/app/tools/gimpwarpoptions.h
index 926197f..bbf4809 100644
--- a/app/tools/gimpwarpoptions.h
+++ b/app/tools/gimpwarpoptions.h
@@ -22,7 +22,7 @@
 
 
 #include "core/gimptooloptions.h"
-
+#include <gegl.h>
 
 #define GIMP_TYPE_WARP_OPTIONS            (gimp_warp_options_get_type ())
 #define GIMP_WARP_OPTIONS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_WARP_OPTIONS, GimpWarpOptions))
@@ -42,7 +42,7 @@ struct _GimpWarpOptions
   gdouble          effect_strength;
   gdouble          effect_size;
   gdouble          effect_hardness;
-  GimpWarpBehavior behavior;
+  GeglWarpBehavior behavior;
 };
 
 struct _GimpWarpOptionsClass
diff --git a/app/tools/gimpwarptool.c b/app/tools/gimpwarptool.c
index d2ea5a5..181270f 100644
--- a/app/tools/gimpwarptool.c
+++ b/app/tools/gimpwarptool.c
@@ -557,7 +557,7 @@ gimp_warp_tool_add_op (GimpWarpTool *wt)
   g_return_if_fail (GEGL_IS_NODE (wt->render_node));
 
   new_op = gegl_node_new_child (wt->graph,
-                                "operation", "gimp:warp",
+                                "operation", "gegl:warp",
                                 "behavior", options->behavior,
                                 "strength", options->effect_strength,
                                 "size", options->effect_size,



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