[gnome-photos/wip/rishi/thumbnailer: 7/13] pipeline: Shuffle some code around



commit 3af72e5f786ee16753155a7b39c576b8b7b4e5c3
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 27 00:55:30 2017 +0100

    pipeline: Shuffle some code around
    
    This will make the subsequent commit easier to read.

 src/photos-pipeline.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index cac51d4..2376920 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -212,7 +212,6 @@ photos_pipeline_constructed (GObject *object)
 
   G_OBJECT_CLASS (photos_pipeline_parent_class)->constructed (object);
 
-  self->graph = gegl_node_new ();
   gegl_node_add_child (self->parent, self->graph);
   input = gegl_node_get_input_proxy (self->graph, "input");
   output = gegl_node_get_output_proxy (self->graph, "output");
@@ -285,6 +284,7 @@ photos_pipeline_init (PhotosPipeline *self)
   EGG_COUNTER_INC (instances);
 
   self->hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_object_unref);
+  self->graph = gegl_node_new ();
 }
 
 


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