[gegl] magick-load: stop using deprecated graph api
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] magick-load: stop using deprecated graph api
- Date: Wed, 12 Apr 2017 13:49:43 +0000 (UTC)
commit 3f6043a40a64e33e943461ffa327f0e7e2fcfa3d
Author: Øyvind Kolås <pippin gimp org>
Date: Wed Apr 12 15:46:42 2017 +0200
magick-load: stop using deprecated graph api
operations/common/magick-load.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/operations/common/magick-load.c b/operations/common/magick-load.c
index bf238be..cff78ed 100644
--- a/operations/common/magick-load.c
+++ b/operations/common/magick-load.c
@@ -42,7 +42,7 @@ load_cache (GeglProperties *op_magick_load)
{
gchar *filename;
gchar *cmd;
- GeglNode *graph, *sink;
+ GeglNode *graph, *sink, *loader;
GeglBuffer *newbuf = NULL;
/* ImageMagick backed fallback FIXME: make this robust.
@@ -55,8 +55,15 @@ load_cache (GeglProperties *op_magick_load)
if (system (cmd) == -1)
g_warning ("Error executing ImageMagick convert program");
- graph = gegl_graph (sink=gegl_node ("gegl:buffer-sink", "buffer", &newbuf, NULL,
- gegl_node ("gegl:png-load", "path", filename, NULL)));
+
+ graph = gegl_node_new ();
+ sink = gegl_node_new_child (graph,
+ "operation", "gegl:buffer-sink",
+ "buffer", &newbuf, NULL);
+ loader = gegl_node_new_child (graph,
+ "operation", "gegl:png-load",
+ "path", filename, NULL);
+ gegl_node_link_many (loader, sink, NULL);
gegl_node_process (sink);
op_magick_load->user_data = (gpointer) newbuf;
g_object_unref (graph);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]