Commit c30b60a2 authored by Øyvind Kolås's avatar Øyvind Kolås

s/gegl_graph_create_node/gegl_graph_new_node/ in public API

parent ad6417c9
2006-09-24 Øyvind Kolås <pippin@gimp.org>
s/gegl_graph_create_node/gegl_graph_new_node/ in public API.
* gegl/gegl-graph.c: (gegl_graph_new_node):
* gegl/gegl-graph.h:
* gegl/gegl-xml.c: (start_element):
* gegl/gegl.c: (main), (main_interactive):
* operations/file-io/load.c: (associate), (refresh_cache):
* operations/meta/dropshadow.c: (associate):
* operations/meta/layer.c: (associate), (refresh_cache):
* operations/meta/unsharp-mask.c: (associate):
* tests/mockimageoperationtest.c:
(test_mock_image_operation_g_object_properties),
(test_mock_image_operation_chain):
* tools/introspect.c: (stuff):
2006-09-24 Øyvind Kolås <pippin@gimp.org>
Commented out duplicate operations in blend.rb, added cvs ignore files.
......
......@@ -90,7 +90,7 @@ main (gint argc,
glong timing;
timing = gegl_ticks ();
GeglNode *output = gegl_graph_create_node (GEGL_GRAPH (gegl),
GeglNode *output = gegl_graph_new_node (GEGL_GRAPH (gegl),
"operation", "png-save",
"path", o->output,
NULL);
......@@ -126,7 +126,7 @@ static gint
main_interactive (GeglNode *gegl,
GeglOptions *o)
{
GeglNode *output = gegl_graph_create_node (GEGL_GRAPH (gegl),
GeglNode *output = gegl_graph_new_node (GEGL_GRAPH (gegl),
"operation", "display",
NULL);
......
......@@ -148,9 +148,9 @@ gegl_graph_get_children (GeglGraph *self)
* returns a freshly created node, owned by the graph, and thus freed with it
*/
GeglNode *
gegl_graph_create_node (GeglGraph *self,
const gchar *first_property_name,
...)
gegl_graph_new_node (GeglGraph *self,
const gchar *first_property_name,
...)
{
GeglNode *node;
va_list var_args;
......
......@@ -61,7 +61,7 @@ GeglNode * gegl_graph_get_nth_child (GeglGraph *self,
GList * gegl_graph_get_children (GeglGraph *self);
void gegl_graph_remove_children (GeglGraph *self);
gint gegl_graph_get_num_children (GeglGraph *self);
GeglNode * gegl_graph_create_node (GeglGraph *self,
GeglNode * gegl_graph_new_node (GeglGraph *self,
const gchar *first_property_name,
...);
GeglNode * gegl_graph_input (GeglGraph *graph,
......
......@@ -121,13 +121,13 @@ static void start_element (GMarkupParseContext *context,
if (!strcmp (element_name, "node"))
{
new = gegl_graph_create_node (pd->gegl,
new = gegl_graph_new_node (pd->gegl,
"operation", name2val (a, v, "operation"),
NULL);
}
else
{
new = gegl_graph_create_node (pd->gegl,
new = gegl_graph_new_node (pd->gegl,
"operation", element_name,
NULL);
}
......
......@@ -90,7 +90,7 @@ main (gint argc,
glong timing;
timing = gegl_ticks ();
GeglNode *output = gegl_graph_create_node (GEGL_GRAPH (gegl),
GeglNode *output = gegl_graph_new_node (GEGL_GRAPH (gegl),
"operation", "png-save",
"path", o->output,
NULL);
......@@ -126,7 +126,7 @@ static gint
main_interactive (GeglNode *gegl,
GeglOptions *o)
{
GeglNode *output = gegl_graph_create_node (GEGL_GRAPH (gegl),
GeglNode *output = gegl_graph_new_node (GEGL_GRAPH (gegl),
"operation", "display",
NULL);
......
......@@ -159,7 +159,7 @@ static void associate (GeglOperation *operation)
priv->output = gegl_graph_output (graph, "output");
priv->load = gegl_graph_create_node (graph,
priv->load = gegl_graph_new_node (graph,
"operation", "text",
"string", "foo",
NULL);
......@@ -197,7 +197,7 @@ refresh_cache (GeglChantOperation *self)
}
gegl = g_object_new (GEGL_TYPE_GRAPH, NULL);
load = gegl_graph_create_node (gegl, "operation", "load",
load = gegl_graph_new_node (gegl, "operation", "load",
"cache", FALSE,
"path", self->path,
NULL);
......
......@@ -90,11 +90,11 @@ static void associate (GeglOperation *operation)
if (!priv->over)
{
GeglGraph *graph = GEGL_GRAPH (priv->self);
priv->over = gegl_graph_create_node (graph, "operation", "over", NULL);
priv->translate = gegl_graph_create_node (graph, "operation", "translate", NULL);
priv->opacity = gegl_graph_create_node (graph, "operation", "opacity", NULL);
priv->blur = gegl_graph_create_node (graph, "operation", "gaussian-blur", NULL);
priv->darken = gegl_graph_create_node (graph, "operation", "brightness-contrast", "brightness", -0.9, NULL);
priv->over = gegl_graph_new_node (graph, "operation", "over", NULL);
priv->translate = gegl_graph_new_node (graph, "operation", "translate", NULL);
priv->opacity = gegl_graph_new_node (graph, "operation", "opacity", NULL);
priv->blur = gegl_graph_new_node (graph, "operation", "gaussian-blur", NULL);
priv->darken = gegl_graph_new_node (graph, "operation", "brightness-contrast", "brightness", -0.9, NULL);
gegl_node_connect (priv->darken, "input", priv->input, "output");
gegl_node_connect (priv->blur, "input", priv->darken, "output");
......
......@@ -107,14 +107,14 @@ static void associate (GeglOperation *operation)
priv->aux = gegl_graph_input (graph, "aux");
priv->output = gegl_graph_output (graph, "output");
priv->composite_op = gegl_graph_create_node (graph,
priv->composite_op = gegl_graph_new_node (graph,
"operation", self->composite_op,
NULL);
priv->shift = gegl_graph_create_node (graph, "operation", "shift", NULL);
priv->opacity = gegl_graph_create_node (graph, "operation", "opacity", NULL);
priv->shift = gegl_graph_new_node (graph, "operation", "shift", NULL);
priv->opacity = gegl_graph_new_node (graph, "operation", "opacity", NULL);
priv->load = gegl_graph_create_node (graph,
priv->load = gegl_graph_new_node (graph,
"operation", "buffer",
NULL);
......@@ -186,7 +186,7 @@ refresh_cache (GeglChantOperation *self)
}
gegl = g_object_new (GEGL_TYPE_GRAPH, NULL);
load = gegl_graph_create_node (gegl, "operation", "load",
load = gegl_graph_new_node (gegl, "operation", "load",
"cache", FALSE,
"path", self->src,
NULL);
......
......@@ -64,19 +64,19 @@ static void associate (GeglOperation *operation)
if (!priv->add)
{
priv->add = gegl_graph_create_node (graph,
priv->add = gegl_graph_new_node (graph,
"operation", "add",
NULL);
priv->multiply = gegl_graph_create_node (graph,
priv->multiply = gegl_graph_new_node (graph,
"operation", "multiply",
NULL);
priv->subtract = gegl_graph_create_node (graph,
priv->subtract = gegl_graph_new_node (graph,
"operation", "subtract",
NULL);
priv->blur = gegl_graph_create_node (graph,
priv->blur = gegl_graph_new_node (graph,
"operation", "gaussian-blur",
NULL);
......
......@@ -63,7 +63,7 @@ test_mock_image_operation_g_object_properties(Test *test)
"length", 3,
"default-pixel", 1,
NULL);
a = gegl_graph_create_node (gegl,
a = gegl_graph_new_node (gegl,
"operation", "GeglMockImageOperation",
"input1", 2,
"input0", image,
......@@ -121,12 +121,12 @@ test_mock_image_operation_chain(Test *test)
"default-pixel", 1,
NULL);
A = gegl_graph_create_node (gegl,
A = gegl_graph_new_node (gegl,
"operation", "GeglMockImageOperation",
"input0", image,
"input1", 2,
NULL);
B = gegl_graph_create_node (gegl,
B = gegl_graph_new_node (gegl,
"operation", "GeglMockImageOperation",
"input1", 3,
NULL);
......
......@@ -467,10 +467,10 @@ stuff (gint argc,
{
GeglGraph *gegl = g_object_new (GEGL_TYPE_GRAPH, NULL);
GeglNode *display = gegl_graph_create_node (gegl,
GeglNode *display = gegl_graph_new_node (gegl,
"operation", "crop",
NULL);
GeglNode *png_load = gegl_graph_create_node (gegl,
GeglNode *png_load = gegl_graph_new_node (gegl,
"operation", "checkerboard",
NULL);
......
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