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



commit f27ca6d174def0a19e8d0b258ab2c1cfbdbcac05
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 025b7c0..cdd4b6c 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -217,7 +217,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");
@@ -290,6 +289,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]