[gegl/xml: 3/12] xml2: store the read ID in the op's name



commit 541d3bc0e794fd44dce249cfc3bcc3f62d6cd8f0
Author: Michael Muré <batolettre gmail com>
Date:   Fri Jul 27 20:24:56 2012 +0900

    xml2: store the read ID in the op's name

 gegl/gegl-xml-v2.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gegl/gegl-xml-v2.c b/gegl/gegl-xml-v2.c
index 31aedbc..ae08159 100644
--- a/gegl/gegl-xml-v2.c
+++ b/gegl/gegl-xml-v2.c
@@ -131,6 +131,9 @@ static void start_element (GMarkupParseContext *context,
         return;
       }
 
+      /* set the name of the node with the ID */
+      gegl_node_set (pd->current_node, "name", id, NULL);
+
       g_hash_table_insert (pd->ids, g_strdup (id), pd->current_node);
       pd->last_node = pd->current_node;
     }


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