[gegl] Bug 403003 - Make gegl_xml functions only use public API
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] Bug 403003 - Make gegl_xml functions only use public API
- Date: Sat, 19 Oct 2013 03:10:24 +0000 (UTC)
commit 00431fb8a23af8a68009330d00e34674a347291d
Author: Michael Henning <drawoc darkrefraction com>
Date: Fri Oct 18 23:04:50 2013 -0400
Bug 403003 - Make gegl_xml functions only use public API
gegl/gegl-xml.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/gegl/gegl-xml.c b/gegl/gegl-xml.c
index f66c62a..3acfbca 100644
--- a/gegl/gegl-xml.c
+++ b/gegl/gegl-xml.c
@@ -25,8 +25,6 @@
#include <limits.h>
#include "gegl.h"
-#include "gegl-types-internal.h"
-#include "graph/gegl-node.h"
#include "property-types/gegl-paramspecs.h"
#include "gegl-instrument.h"
#include "gegl-xml.h"
@@ -111,7 +109,7 @@ set_clone_prop_as_well:
if (!paramspec)
{
g_warning ("property %s not found for %s",
- param_name, gegl_node_get_debug_name (new));
+ param_name, gegl_node_get_operation (new));
}
else if (g_type_is_a (G_PARAM_SPEC_TYPE (paramspec),
GEGL_TYPE_PARAM_FILE_PATH))
@@ -1123,8 +1121,9 @@ gegl_node_to_xml (GeglNode *gegl,
ss.clones = g_hash_table_new (NULL, NULL);
ss.terse = FALSE;
- if(!(gegl->is_graph || gegl->operation))
- gegl = gegl_node_get_output_proxy(gegl, "output");
+ /* this case is probably only for empty graphs */
+ if (!gegl_node_get_operation (gegl))
+ gegl = gegl_node_get_output_proxy (gegl, "output");
g_string_append (ss.buf, "<?xml version='1.0' encoding='UTF-8'?>\n");
g_string_append (ss.buf, "<gegl>\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]