1144
1143
%-enumtypes.c: $(glib_enum_headers)
1147
1146
--fhead "#include <$*.h>\n#include \"$*-enumtypes.h\"" \
1148
1147
--fprod "\n/* enumerations from \"@filename@\" */" \
1149
1148
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0) {\n static const G@Type@Value values[] = {" \
1150
--vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \
1149
--vprod " { @valuenum@, \"@VALUENAME@\", \"@valuenick@\" }," \
1151
1150
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \