[gegl] tile: add property meta-data
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] tile: add property meta-data
- Date: Sat, 17 May 2014 12:56:31 +0000 (UTC)
commit 5b27c3445118e43e42c0bdec812b0067704d68f0
Author: Øyvind Kolås <pippin gimp org>
Date: Sat May 17 14:03:45 2014 +0200
tile: add property meta-data
operations/common/tile.c | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/operations/common/tile.c b/operations/common/tile.c
index aa39311..daf0942 100644
--- a/operations/common/tile.c
+++ b/operations/common/tile.c
@@ -19,22 +19,24 @@
#include "config.h"
#include <glib/gi18n-lib.h>
-#ifdef GEGL_CHANT_PROPERTIES
+#ifdef GEGL_PROPERTIES
-gegl_chant_int (offset_x, _("Horizontal offset"),
- G_MININT, G_MAXINT, 0,
- _("Horizontal offset"))
+gegl_property_int (offset_x, "nick", _("Horizontal offset"),
+ "unit", "pixel-coordinate",
+ "axis", "x",
+ NULL)
-gegl_chant_int (offset_y, _("Vertical offset"),
- G_MININT, G_MAXINT, 0,
- _("Vertical offset"))
+gegl_property_int (offset_y, "nick", _("Vertical offset"),
+ "unit", "pixel-coordinate",
+ "axis", "y",
+ NULL)
#else
-#define GEGL_CHANT_TYPE_FILTER
-#define GEGL_CHANT_C_FILE "tile.c"
+#define GEGL_OP_FILTER
+#define GEGL_OP_C_FILE "tile.c"
-#include "gegl-chant.h"
+#include "gegl-op.h"
static void
prepare (GeglOperation *operation)
@@ -86,7 +88,7 @@ process (GeglOperation *operation,
const GeglRectangle *result,
gint level)
{
- GeglChantO *o = GEGL_CHANT_PROPERTIES (operation);
+ GeglProperties *o = GEGL_PROPERTIES (operation);
gegl_buffer_set_pattern (output, result, input,
o->offset_x,
@@ -96,7 +98,7 @@ process (GeglOperation *operation,
}
static void
-gegl_chant_class_init (GeglChantClass *klass)
+gegl_op_class_init (GeglOpClass *klass)
{
GeglOperationClass *operation_class;
GeglOperationFilterClass *filter_class;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]