[gegl] gegl-xml: specify a gegl:nop op for top level element



commit 415baa9b903becabb0fbe4becc13406a3b767ff6
Author: �yvind Kolås <pippin gimp org>
Date:   Thu Aug 20 01:56:36 2009 +0100

    gegl-xml: specify a gegl:nop op for top level element
    
    To allow using the returned GeglNode directly as a image source.

 gegl/gegl-xml.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-xml.c b/gegl/gegl-xml.c
index bd40f20..b0249c3 100644
--- a/gegl/gegl-xml.c
+++ b/gegl/gegl-xml.c
@@ -223,7 +223,7 @@ static void start_element (GMarkupParseContext *context,
   if (!strcmp (element_name, "gegl") ||
       !strcmp (element_name, "image"))
     {
-      GeglNode *new = g_object_new (GEGL_TYPE_NODE, NULL);
+      GeglNode *new = g_object_new (GEGL_TYPE_NODE, "operation", "gegl:nop", NULL);
       if (pd->gegl == NULL)
         {
           pd->gegl = new;



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