[gnome-photos] pipeline: Add debug for photos_pipeline_revert



commit 548f6cb5e8f07822f98df6eecb037eda08fc685f
Author: Debarshi Ray <debarshir gnome org>
Date:   Fri Feb 19 18:37:49 2016 +0100

    pipeline: Add debug for photos_pipeline_revert

 src/photos-pipeline.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-pipeline.c b/src/photos-pipeline.c
index edbbbd3..32642b9 100644
--- a/src/photos-pipeline.c
+++ b/src/photos-pipeline.c
@@ -620,6 +620,7 @@ photos_pipeline_revert (PhotosPipeline *self)
   GeglNode *input;
   GeglNode *last;
   GeglNode *output;
+  gchar *xml;
 
   input = gegl_node_get_input_proxy (self->graph, "input");
   output = gegl_node_get_output_proxy (self->graph, "output");
@@ -634,4 +635,9 @@ photos_pipeline_revert (PhotosPipeline *self)
     }
 
   gegl_node_link (input, output);
+
+  xml = gegl_node_to_xml_full (self->graph, self->graph, "/");
+  photos_debug (PHOTOS_DEBUG_GEGL, "Pipeline: %s", xml);
+
+  g_free (xml);
 }


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