Commit 70d714ee authored by Øyvind Kolås's avatar Øyvind Kolås

Some prototype code towards making it possible to write meta ops as

	XML instead of C.

	* gegl/gegl-operation-meta.c: (gegl_operation_meta_redirect):
	* operations/meta/dropshadow.c: (associate):
parent ba9da979
2006-11-03 Øyvind Kolås <pippin@gimp.org>
Some prototype code towards making it possible to write meta ops as
XML instead of C.
* gegl/gegl-operation-meta.c: (gegl_operation_meta_redirect):
* operations/meta/dropshadow.c: (associate):
2006-11-03 Øyvind Kolås <pippin@gimp.org>
* gegl/gegl-node.c: (gegl_node_connect), (gegl_node_link_many):
......@@ -3695,7 +3703,7 @@
* gegl/gegl-pad.[ch]
* gegl/gegl-visitor.[ch]: Make consistent use of using self as the
object instance.
* gegl/gegl-node.[c]: added gegl_node_list_properties ()
* gegl/gegl-node.[c]: added gegl_node_get_properties ()
* gegl/gegl-operation.[ch]: Made descendant class of GObject instead
2005-07-30 Øyvind Kolås <pipipn@gimp.org>
......
......@@ -68,3 +68,20 @@ set_property (GObject *object,
GParamSpec *pspec)
{
}
typedef struct Redirect {
gchar *name;
void *data;
GeglNode *internal;
gchar *internal_name;
} Redirect;
void
gegl_operation_meta_redirect (GeglOperation *operation,
const gchar *name,
void *data,
GeglNode *internal,
const gchar *internal_name)
{
g_warning ("redirect request for %s->%s", name, internal_name);
}
......@@ -122,6 +122,11 @@ static void associate (GeglOperation *operation)
gegl_node_link_many (priv->input, priv->darken, priv->blur, priv->opacity, priv->translate, priv->over, priv->output, NULL);
gegl_node_connect (priv->over, "aux", priv->input, "output");
gegl_node_connect (priv->darken, "aux", priv->black, "output");
gegl_operation_meta_redirect (self, "radius", &self->radius, priv->blur, "radius-x");
gegl_operation_meta_redirect (self, "radius", &self->radius, priv->blur, "radius-y");
gegl_operation_meta_redirect (self, "x", &self->x, priv->translate, "x");
gegl_operation_meta_redirect (self, "y", &self->y, priv->translate, "y");
}
}
......
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