[gnome-photos/wip/rishi/edit-mode: 11/18] pipeline: remove input
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/rishi/edit-mode: 11/18] pipeline: remove input
- Date: Tue, 26 May 2015 18:09:56 +0000 (UTC)
commit ca27dc8e9d5c19a91ca4ef6f0959c672dc3c0381
Author: Debarshi Ray <debarshir gnome org>
Date: Tue May 26 18:44:38 2015 +0200
pipeline: remove input
src/photos-base-item.c | 6 +++---
src/photos-pipeline.c | 10 ----------
src/photos-pipeline.h | 2 --
3 files changed, 3 insertions(+), 15 deletions(-)
---
diff --git a/src/photos-base-item.c b/src/photos-base-item.c
index 1e47313..6f9b06c 100644
--- a/src/photos-base-item.c
+++ b/src/photos-base-item.c
@@ -1436,15 +1436,15 @@ photos_base_item_load_async (PhotosBaseItem *self,
if (priv->graph == NULL)
{
- GeglNode *input;
+ GeglNode *graph;
priv->graph = gegl_node_new ();
priv->load = gegl_node_new_child (priv->graph, "operation", "gegl:load", NULL);
priv->pipeline = photos_pipeline_new (priv->graph);
- input = photos_pipeline_get_input (priv->pipeline);
+ graph = photos_pipeline_get_graph (priv->pipeline);
- gegl_node_link_many (priv->load, input, NULL);
+ gegl_node_link_many (priv->load, graph, NULL);
}
task = g_task_new (self, cancellable, callback, user_data);
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 2d6d0d1..7c0bc58 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -165,16 +165,6 @@ photos_pipeline_get_graph (PhotosPipeline *self)
GeglNode *
-photos_pipeline_get_input (PhotosPipeline *self)
-{
- GeglNode *input;
-
- input = gegl_node_get_input_proxy (self->graph, "input");
- return input;
-}
-
-
-GeglNode *
photos_pipeline_get_output (PhotosPipeline *self)
{
GeglNode *output;
diff --git a/src/photos-pipeline.h b/src/photos-pipeline.h
index 7acb834..f078a06 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -58,8 +58,6 @@ void photos_pipeline_add (PhotosPipeline *self,
GeglNode *photos_pipeline_get_graph (PhotosPipeline *self);
-GeglNode *photos_pipeline_get_input (PhotosPipeline *self);
-
GeglNode *photos_pipeline_get_output (PhotosPipeline *self);
void photos_pipeline_redo (PhotosPipeline *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]