[gtk/wip/baedert/nodeeditor] rendernodeparser: Switch to new child node serialization scheme
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/nodeeditor] rendernodeparser: Switch to new child node serialization scheme
- Date: Wed, 24 Apr 2019 06:01:54 +0000 (UTC)
commit 0efe354a2f385118950ac1884445781d7dba455f
Author: Timm Bäder <mail baedert org>
Date: Wed Apr 24 07:59:29 2019 +0200
rendernodeparser: Switch to new child node serialization scheme
gsk/gskrendernodeparser.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gsk/gskrendernodeparser.c b/gsk/gskrendernodeparser.c
index 4cf179b9ca..4248e4e368 100644
--- a/gsk/gskrendernodeparser.c
+++ b/gsk/gskrendernodeparser.c
@@ -1669,7 +1669,7 @@ render_node_print (Printer *p,
/* TODO: We potentially need to escape certain characters in the message */
g_string_append_printf (p->str, "message: \"%s\"\n", gsk_debug_node_get_message (node));
- render_node_print (p, gsk_debug_node_get_child (node));
+ append_node_param (p, "child", gsk_debug_node_get_child (node));
end_node (p);
}
break;
@@ -1679,7 +1679,7 @@ render_node_print (Printer *p,
start_node (p, "blur");
append_float_param (p, "radius", gsk_blur_node_get_radius (node));
- render_node_print (p, gsk_blur_node_get_child (node));
+ append_node_param (p, "child", gsk_blur_node_get_child (node));
end_node (p);
}
@@ -1691,7 +1691,7 @@ render_node_print (Printer *p,
append_rect_param (p, "bounds", &node->bounds);
append_rect_param (p, "child-bounds", gsk_repeat_node_peek_child_bounds (node));
- render_node_print (p, gsk_repeat_node_get_child (node));
+ append_node_param (p, "child", gsk_repeat_node_get_child (node));
end_node (p);
}
@@ -1704,8 +1704,8 @@ render_node_print (Printer *p,
_indent (p);
/* TODO: (de)serialize enums! */
g_string_append_printf (p->str, "mode = %d\n", gsk_blend_node_get_blend_mode (node));
- render_node_print (p, gsk_blend_node_get_bottom_child (node));
- render_node_print (p, gsk_blend_node_get_top_child (node));
+ append_node_param (p, "top", gsk_blend_node_get_top_child (node));
+ append_node_param (p, "bottom", gsk_blend_node_get_bottom_child (node));
end_node (p);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]