--- a/gplate/gplate-template.c Sun Feb 17 07:13:28 2008 -0600
+++ b/gplate/gplate-template.c Sun Feb 17 07:21:57 2008 -0600
@@ -570,22 +570,27 @@
gplate_template_render(GPlateTemplate *tplate, const gchar *tplate_string,
- GList *tokens = NULL, *l = NULL;
+ GPlateTemplatePrivate *priv = NULL; g_return_val_if_fail(GPLATE_IS_TEMPLATE(tplate), NULL);
g_return_val_if_fail(tplate_string, NULL);
- tokens = gplate_template_tokenize(tplate, tplate_string, error);
+ priv = GPLATE_TEMPLATE_GET_PRIVATE(tplate); + priv->tokens = gplate_template_tokenize(tplate, tplate_string, error); /* for whatever reason, using g_string_new_len here doesn't work */
- for(l = tokens; l; l = l->next) {
- GPlateTag *tag = GPLATE_TAG(l->data);
+ for(tag = gplate_template_first_tag(tplate); + tag = gplate_template_next_tag(tplate)) GType ttype = G_OBJECT_TYPE(tag);
gchar *contents = NULL, *output = NULL;