[gegl/xml] xml2: store the read ID in the op's name
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/xml] xml2: store the read ID in the op's name
- Date: Fri, 27 Jul 2012 11:25:35 +0000 (UTC)
commit c607fdfc857477d7606fe17749ad9cb1047aaf36
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 files changed, 3 insertions(+), 0 deletions(-)
---
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]