[gegl] operations: Use get_gegl_operation instead of private API



commit d9e160e6a3e67e960502905deaff2274e237695a
Author: Daniel Sabo <DanielSabo gmail com>
Date:   Tue Dec 3 09:21:26 2013 -0800

    operations: Use get_gegl_operation instead of private API

 operations/common/display.c |    3 +--
 operations/common/save.c    |    3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/operations/common/display.c b/operations/common/display.c
index 933ee9f..b46c6f5 100644
--- a/operations/common/display.c
+++ b/operations/common/display.c
@@ -27,7 +27,6 @@ gegl_chant_string  (window_title, _(""), "window_title",
 #define GEGL_CHANT_C_FILE       "display.c"
 
 #include "gegl-plugin.h"
-#include "gegl-node-private.h"
 
 /* gegl:display
  * Meta operation for displaying the output of a buffer.
@@ -120,7 +119,7 @@ process (GeglOperation        *operation,
 {
   GeglChant   *self = GEGL_CHANT (operation);
 
-  return gegl_operation_process (self->display->operation, 
+  return gegl_operation_process (gegl_node_get_gegl_operation (self->display),
                                  context, output_pad, roi, level);
 }
 
diff --git a/operations/common/save.c b/operations/common/save.c
index 9887c3b..c290336 100644
--- a/operations/common/save.c
+++ b/operations/common/save.c
@@ -29,7 +29,6 @@ gegl_chant_file_path (path, _("File"), "", _("Path of file to save."))
 #define GEGL_CHANT_C_FILE       "save.c"
 
 #include "gegl-plugin.h"
-#include "gegl-node-private.h"
 
 struct _GeglChant
 {
@@ -161,7 +160,7 @@ gegl_save_process (GeglOperation        *operation,
 {
   GeglChant *self = GEGL_CHANT (operation);
 
-  return gegl_operation_process (self->save->operation,
+  return gegl_operation_process (gegl_node_get_gegl_operation (self->save),
                                  context,
                                  output_pad,
                                  roi,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]