[librsvg] New function rsvg_node_set_atts()
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] New function rsvg_node_set_atts()
- Date: Fri, 17 Feb 2017 16:37:32 +0000 (UTC)
commit db7ce753772df059aad2cee1853af19440d24a75
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jan 24 21:12:05 2017 -0600
New function rsvg_node_set_atts()
It will be called from the Rust code.
rsvg-base.c | 8 +++++++-
rsvg-private.h | 3 +++
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/rsvg-base.c b/rsvg-base.c
index aadbc77..c2b7342 100644
--- a/rsvg-base.c
+++ b/rsvg-base.c
@@ -375,6 +375,12 @@ get_node_creator_for_element_name (const char *name)
return result;
}
+void
+rsvg_node_set_atts (RsvgNode *node, RsvgHandle *handle, RsvgPropertyBag *atts)
+{
+ node->vtable->set_atts (node, handle, atts);
+}
+
static void
node_set_atts (RsvgNode * node, RsvgHandle * ctx, const NodeCreator *creator, RsvgPropertyBag * atts)
{
@@ -382,7 +388,7 @@ node_set_atts (RsvgNode * node, RsvgHandle * ctx, const NodeCreator *creator, Rs
const char *id;
const char *klazz;
- node->vtable->set_atts (node, ctx, atts);
+ rsvg_node_set_atts (node, ctx, atts);
/* The "svg" node is special; it will load its id/class
* attributes until the end, when rsvg_end_element() calls
diff --git a/rsvg-private.h b/rsvg-private.h
index d4f6396..dbff0c9 100644
--- a/rsvg-private.h
+++ b/rsvg-private.h
@@ -356,6 +356,9 @@ RsvgState *rsvg_node_get_state (RsvgNode *node);
G_GNUC_INTERNAL
RsvgNode *rsvg_node_get_parent (RsvgNode *node);
+G_GNUC_INTERNAL
+void rsvg_node_set_atts (RsvgNode *node, RsvgHandle *handle, RsvgPropertyBag *atts);
+
/* Used to iterate among a node's children with rsvg_node_foreach_child().
* If this caller-supplied function returns FALSE, iteration will stop.
* Otherwise, iteration will continue to the next child node.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]