[gegl] gegl: add parsing support for paths in new serialization
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl: add parsing support for paths in new serialization
- Date: Thu, 13 Apr 2017 16:39:37 +0000 (UTC)
commit 4ee97fa2cde33adb69b35c3a507b4b040b2c2901
Author: Øyvind Kolås <pippin gimp org>
Date: Thu Apr 13 18:09:13 2017 +0200
gegl: add parsing support for paths in new serialization
gegl/gegl-serialize.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index 0cc6c98..2542a46 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -399,6 +399,12 @@ gegl_create_chain_argv (char **ops,
"string", value, NULL);
gegl_node_set (iter[level], key, color, NULL);
}
+ else if (target_type == GEGL_TYPE_PATH)
+ {
+ GeglPath *path = gegl_path_new ();
+ gegl_path_parse_string (path, value);
+ gegl_node_set (iter[level], key, path, NULL);
+ }
else if (g_type_is_a (target_type, G_TYPE_STRING))
{
gegl_node_set (iter[level], key, value, NULL);
@@ -421,7 +427,7 @@ gegl_create_chain_argv (char **ops,
gchar *nick;
gchar *c;
g_printerr (
- "gedl (param_set %s): enum %s has no value '%s'\n",
+ "gegl (param_set %s): enum %s has no value '%s'\n",
key,
g_type_name (target_type),
value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]