[gegl] svg-saturate: use gegl-op.h
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] svg-saturate: use gegl-op.h
- Date: Sat, 17 May 2014 12:56:41 +0000 (UTC)
commit f12750ad4af7eef86068bddd20218cd9a93bbe5d
Author: Øyvind Kolås <pippin gimp org>
Date: Sat May 17 14:07:29 2014 +0200
svg-saturate: use gegl-op.h
operations/common/svg-saturate.c | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/operations/common/svg-saturate.c b/operations/common/svg-saturate.c
index 071b89e..04436ff 100644
--- a/operations/common/svg-saturate.c
+++ b/operations/common/svg-saturate.c
@@ -20,17 +20,18 @@
#include "config.h"
#include <glib/gi18n-lib.h>
+#ifdef GEGL_PROPERTIES
-#ifdef GEGL_CHANT_PROPERTIES
-
-gegl_chant_string (values, _("Values"), "", _("list of <number>s"))
+gegl_property_string (values, "nick", _("Values"),
+ "blurb", _("list of <number>s"),
+ NULL)
#else
-#define GEGL_CHANT_TYPE_POINT_FILTER
-#define GEGL_CHANT_C_FILE "svg-saturate.c"
+#define GEGL_OP_POINT_FILTER
+#define GEGL_OP_C_FILE "svg-saturate.c"
-#include "gegl-chant.h"
+#include "gegl-op.h"
#include <math.h>
#include <stdlib.h>
@@ -51,7 +52,7 @@ process (GeglOperation *op,
const GeglRectangle *roi,
gint level)
{
- GeglChantO *o = GEGL_CHANT_PROPERTIES (op);
+ GeglProperties *o = GEGL_PROPERTIES (op);
gfloat *in = in_buf;
gfloat *out = out_buf;
gfloat *m;
@@ -110,7 +111,7 @@ process (GeglOperation *op,
static void
-gegl_chant_class_init (GeglChantClass *klass)
+gegl_op_class_init (GeglOpClass *klass)
{
GeglOperationClass *operation_class;
GeglOperationPointFilterClass *point_filter_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]