grim/gplate

Parents f15a5737baba
Children d5876c6d72cc
Added the include function to the default config
--- a/gplate/gplate-config.c Tue Feb 19 03:17:31 2008 -0600
+++ b/gplate/gplate-config.c Tue Feb 19 03:26:49 2008 -0600
@@ -29,6 +29,7 @@
#include <gplate/gplate-text-tag.h>
#include <gplate/gplate-variable-tag.h>
+#include <gplate/gplate-include-function.h>
#include <gplate/gplate-print-function.h>
#include <gplate/gplate-noop-function.h>
@@ -49,6 +50,7 @@
gplate_library_add_tag(GPLATE_TYPE_TEXT_TAG, NULL);
gplate_library_add_tag(GPLATE_TYPE_VARIABLE_TAG, NULL);
+ gplate_library_add_function("include", GPLATE_TYPE_INCLUDE_FUNCTION, NULL);
gplate_library_add_function("noop", GPLATE_TYPE_NOOP_FUNCTION, NULL);
gplate_library_add_function("print", GPLATE_TYPE_PRINT_FUNCTION, NULL);
@@ -59,6 +61,7 @@
gplate_library_set_default_function_for_tag("print",
GPLATE_TYPE_VARIABLE_TAG, NULL);
+ gplate_library_bind_function("include", GPLATE_TYPE_CODE_TAG, NULL);
gplate_library_bind_function("print", GPLATE_TYPE_CODE_TAG, NULL);
}