Commit 211f5742 authored by Øyvind Kolås's avatar Øyvind Kolås

Added categories to meta ops

parent 06fe4459
2006-09-10 Øyvind Kolås <pippin@gimp.org>
Added categories to meta ops.
* operations/file-io/load.c:
* operations/meta/dropshadow.c:
* operations/meta/layer.c: (prepare), (associate):
* operations/meta/unsharp-mask.c:
2006-09-10 Øyvind Kolås <pippin@gimp.org>
Moved the operation reference generator out of the gegl binary.
......
......@@ -30,6 +30,7 @@ gegl_chant_boolean(cache, TRUE, "Whether to cache the entire buffer loaded from
"native handlers, and fallback conversion using "\
"image magick's convert."
#define GEGL_CHANT_SELF "load.c"
#define GEGL_CHANT_CATEGORIES "sources:meta"
#define GEGL_CHANT_CLASS_INIT
#include "gegl-chant.h"
#include "gegl/gegl-extension-handler.h"
......
......@@ -30,6 +30,7 @@ gegl_chant_double (radius, -G_MAXDOUBLE, G_MAXDOUBLE, 10.0, "blur radius")
#define GEGL_CHANT_NAME dropshadow
#define GEGL_CHANT_DESCRIPTION "Creates a dropshadow"
#define GEGL_CHANT_SELF "dropshadow.c"
#define GEGL_CHANT_CATEGORIES "meta:effects"
#define GEGL_CHANT_CLASS_INIT
#include "gegl-chant.h"
......
......@@ -32,6 +32,7 @@ gegl_chant_pointer(private, "private stuff do not touch")
#define GEGL_CHANT_NAME layer
#define GEGL_CHANT_DESCRIPTION "A layer in the traditional sense"
#define GEGL_CHANT_SELF "layer.c"
#define GEGL_CHANT_CATEGORIES "meta"
#define GEGL_CHANT_CLASS_INIT
#include "gegl-chant.h"
......@@ -68,7 +69,6 @@ prepare (GeglOperation *operation)
gegl_node_set (priv->load,
"path", self->src,
NULL);
gegl_operation_prepare (priv->load->operation);
g_warning ("(src should be used)");
}
else
......@@ -113,13 +113,13 @@ static void associate (GeglOperation *operation)
priv->load = gegl_graph_create_node (graph,
"operation", "load",
NULL);
gegl_operation_prepare (priv->load->operation);
gegl_node_connect (priv->opacity, "input", priv->load, "output");
gegl_node_connect (priv->shift, "input", priv->opacity, "output");
gegl_node_connect (priv->composite_op, "aux", priv->shift, "output");
gegl_node_connect (priv->composite_op, "input", priv->input, "output");
gegl_node_connect (priv->output, "input", priv->composite_op, "output");
}
static void class_init (GeglOperationClass *klass)
......
......@@ -28,6 +28,7 @@ gegl_chant_double(scale, 0.0, 100.0, 10.0, "Scale")
#define GEGL_CHANT_NAME unsharp_mask
#define GEGL_CHANT_DESCRIPTION "Performs an unsharp mask"
#define GEGL_CHANT_SELF "unsharp-mask.c"
#define GEGL_CHANT_CATEGORIES "meta:enhance"
#define GEGL_CHANT_CLASS_INIT
#include "gegl-chant.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment