[gegl] noise-hsv: use gegl-.op.h
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] noise-hsv: use gegl-.op.h
- Date: Sat, 17 May 2014 15:39:14 +0000 (UTC)
commit 707998fc7f8ca56762bbfaae3cb6d3556038712e
Author: Øyvind Kolås <pippin gimp org>
Date: Sat May 17 15:29:14 2014 +0200
noise-hsv: use gegl-.op.h
operations/common/noise-hsv.c | 39 +++++++++++++++++++--------------------
1 files changed, 19 insertions(+), 20 deletions(-)
---
diff --git a/operations/common/noise-hsv.c b/operations/common/noise-hsv.c
index 9d358b6..f00d632 100644
--- a/operations/common/noise-hsv.c
+++ b/operations/common/noise-hsv.c
@@ -22,33 +22,32 @@
#include "config.h"
#include <glib/gi18n-lib.h>
-#ifdef GEGL_CHANT_PROPERTIES
+#ifdef GEGL_PROPERTIES
-gegl_chant_int (holdness, _("Holdness"),
- 1, 8, 2,
- _("Holdness"))
+gegl_property_int (holdness, "nick", _("Holdness"),
+ "default", 2, "min", 1, "max", 8,
+ NULL)
-gegl_chant_double (hue_distance, _("Hue"),
- 0.0, 180.0, 3.0,
- _("Hue"))
+gegl_property_double (hue_distance, "nick", _("Hue"),
+ "default", 3.0, "min", 0.0, "max", 180.0,
+ NULL)
-gegl_chant_double (saturation_distance, _("Saturation"),
- 0.0, 1.0, 0.04,
- _("Saturation"))
+gegl_property_double (saturation_distance, "nick", _("Saturation"),
+ "default", 0.04, "min", 0.0, "max", 1.0,
+ NULL)
-gegl_chant_double (value_distance, _("Value"),
- 0.0, 1.0, 0.04,
- _("Value"))
+gegl_property_double (value_distance, "nick", _("Value"),
+ "default", 0.04, "min", 0.0, "max", 1.0,
+ NULL)
-gegl_chant_seed (seed, rand, _("Seed"),
- _("Random seed"))
+gegl_property_seed (seed, rand, "nick", _("Random seed"), NULL)
#else
-#define GEGL_CHANT_TYPE_POINT_FILTER
-#define GEGL_CHANT_C_FILE "noise-hsv.c"
+#define GEGL_OP_POINT_FILTER
+#define GEGL_OP_C_FILE "noise-hsv.c"
-#include "gegl-chant.h"
+#include "gegl-op.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
@@ -115,7 +114,7 @@ process (GeglOperation *operation,
const GeglRectangle *roi,
gint level)
{
- GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
+ GeglProperties *o = GEGL_PROPERTIES (operation);
GeglRectangle whole_region;
gint i;
gint x, y;
@@ -183,7 +182,7 @@ process (GeglOperation *operation,
}
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]