[gnome-photos] pipeline: Mark photos_pipeline_reset as private



commit af48890164ad24f8b0ee30806c47d8145bdaf13d
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Feb 16 20:46:09 2016 +0100

    pipeline: Mark photos_pipeline_reset as private
    
    It is a function that is meant to seed an empty graph with placebo
    nodes for operations that have a pre-determined location. There is no
    need for it to be public.

 src/photos-pipeline.c |   44 ++++++++++++++++++++++----------------------
 src/photos-pipeline.h |    2 --
 2 files changed, 22 insertions(+), 24 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index 30293a8..4e5c91c 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -61,6 +61,28 @@ G_DEFINE_TYPE_EXTENDED (PhotosPipeline, photos_pipeline, G_TYPE_OBJECT, 0,
 
 
 static void
+photos_pipeline_reset (PhotosPipeline *self)
+{
+  GeglNode *input;
+  GeglNode *last;
+  GeglNode *node;
+  GeglNode *output;
+
+  input = gegl_node_get_input_proxy (self->graph, "input");
+  output = gegl_node_get_output_proxy (self->graph, "output");
+  last = gegl_node_get_producer (output, "input", NULL);
+  g_return_if_fail (last == input);
+
+  node = gegl_node_new_child (self->graph,
+                              "operation", "photos:insta-filter",
+                              "preset", PHOTOS_OPERATION_INSTA_PRESET_NONE,
+                              NULL);
+  gegl_node_link_many (input, node, output, NULL);
+  g_hash_table_insert (self->hash, g_strdup ("photos:insta-filter"), g_object_ref (node));
+}
+
+
+static void
 photos_pipeline_save_replace_contents (GObject *source_object, GAsyncResult *res, gpointer user_data)
 {
   GTask *task = G_TASK (user_data);
@@ -467,28 +489,6 @@ photos_pipeline_new_processor (PhotosPipeline *self)
 
 
 void
-photos_pipeline_reset (PhotosPipeline *self)
-{
-  GeglNode *input;
-  GeglNode *last;
-  GeglNode *node;
-  GeglNode *output;
-
-  input = gegl_node_get_input_proxy (self->graph, "input");
-  output = gegl_node_get_output_proxy (self->graph, "output");
-  last = gegl_node_get_producer (output, "input", NULL);
-  g_return_if_fail (last == input);
-
-  node = gegl_node_new_child (self->graph,
-                              "operation", "photos:insta-filter",
-                              "preset", PHOTOS_OPERATION_INSTA_PRESET_NONE,
-                              NULL);
-  gegl_node_link_many (input, node, output, NULL);
-  g_hash_table_insert (self->hash, g_strdup ("photos:insta-filter"), g_object_ref (node));
-}
-
-
-void
 photos_pipeline_save_async (PhotosPipeline *self,
                             GCancellable *cancellable,
                             GAsyncReadyCallback callback,
diff --git a/src/photos-pipeline.h b/src/photos-pipeline.h
index 226402a..83bb05d 100644
--- a/src/photos-pipeline.h
+++ b/src/photos-pipeline.h
@@ -80,8 +80,6 @@ GeglNode              *photos_pipeline_get_output        (PhotosPipeline *self);
 
 GeglProcessor         *photos_pipeline_new_processor     (PhotosPipeline *self);
 
-void                   photos_pipeline_reset             (PhotosPipeline *self);
-
 void                   photos_pipeline_save_async        (PhotosPipeline *self,
                                                           GCancellable *cancellable,
                                                           GAsyncReadyCallback callback,


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