gimp r28265 - in trunk: . app/actions



Author: martinn
Date: Sun Apr 12 10:23:02 2009
New Revision: 28265
URL: http://svn.gnome.org/viewvc/gimp?rev=28265&view=rev

Log:
Improve Debug -> Show Image Graph output

Use the new gegl:introspect feature of showing the graph of nodes a
given node depends on. This gives much better depicted graphs.

Modified:
   trunk/ChangeLog
   trunk/app/actions/debug-commands.c

Modified: trunk/app/actions/debug-commands.c
==============================================================================
--- trunk/app/actions/debug-commands.c	(original)
+++ trunk/app/actions/debug-commands.c	Sun Apr 12 10:23:02 2009
@@ -231,6 +231,7 @@
   Gimp            *gimp        = source_image->gimp;
   GimpProjectable *projectable = GIMP_PROJECTABLE (source_image);
   GeglNode        *image_graph = gimp_projectable_get_graph (projectable);
+  GeglNode        *output_node = gegl_node_get_output_proxy (image_graph, "output");
   GimpImage       *new_image   = NULL;
   TileManager     *tiles       = NULL;
   GimpLayer       *layer       = NULL;
@@ -242,7 +243,7 @@
   /* Setup and process the introspection graph */
   introspect = gegl_node_new_child (NULL,
                                     "operation", "gegl:introspect",
-                                    "node",      image_graph,
+                                    "node",      output_node,
                                     NULL);
   sink = gegl_node_new_child (NULL,
                               "operation", "gegl:buffer-sink",



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