summaryrefslogtreecommitdiff
path: root/mate-dictionary/libgdict/gdict-enum-types.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'mate-dictionary/libgdict/gdict-enum-types.c.in')
-rw-r--r--mate-dictionary/libgdict/gdict-enum-types.c.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/mate-dictionary/libgdict/gdict-enum-types.c.in b/mate-dictionary/libgdict/gdict-enum-types.c.in
new file mode 100644
index 00000000..0dbbdc66
--- /dev/null
+++ b/mate-dictionary/libgdict/gdict-enum-types.c.in
@@ -0,0 +1,33 @@
+/*** BEGIN file-header ***/
+#include "gdict-enum-types.h"
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+/* enumerations from "@filename@" */
+#include "@filename@"
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType
+@enum_name@_get_type (void)
+{
+ static GType g_enum_type_id = 0;
+ if (G_UNLIKELY (g_enum_type_id == 0))
+ {
+ static const G@Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+ { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+ { 0, NULL, NULL }
+ };
+ g_enum_type_id = g_@type@_register_static("@EnumName@", values);
+ }
+
+ return g_enum_type_id;
+}
+/*** END value-tail ***/
+