color-assimilation-grid: use GeglOperationMeta::update

parent b55e557e
......@@ -76,7 +76,6 @@ update_graph (GeglOperation *operation)
g_object_unref (color);
s->old_line_thickness = o->line_thickness;
}
}
static void
......@@ -117,22 +116,6 @@ attach (GeglOperation *operation)
gegl_operation_meta_redirect (operation, "grid-size", s->mask, "period");
gegl_operation_meta_redirect (operation, "angle", s->mask, "angle");
gegl_operation_meta_redirect (operation, "saturation", s->saturate, "scale");
update_graph (operation);
}
static void
my_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec)
{
GeglProperties *o = GEGL_PROPERTIES (object);
set_property (object, property_id, value, pspec);
if (o)
update_graph ((void*)object);
}
static void
......@@ -146,16 +129,16 @@ dispose (GObject *object)
static void
gegl_op_class_init (GeglOpClass *klass)
{
GObjectClass *object_class;
GeglOperationClass *operation_class;
object_class = G_OBJECT_CLASS (klass);
object_class->dispose = dispose;
object_class->set_property = my_set_property;
operation_class = GEGL_OPERATION_CLASS (klass);
operation_class->attach = attach;
GObjectClass *object_class;
GeglOperationClass *operation_class;
GeglOperationMetaClass *operation_meta_class;
object_class = G_OBJECT_CLASS (klass);
operation_class = GEGL_OPERATION_CLASS (klass);
operation_meta_class = GEGL_OPERATION_META_CLASS (klass);
object_class->dispose = dispose;
operation_class->attach = attach;
operation_meta_class->update = update_graph;
gegl_operation_class_set_keys (operation_class,
"name", "gegl:color-assimilation-grid",
......
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