From 6fdbedf62c34a78d403d0376a4403b2196da0385 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 1 Nov 2010 16:31:16 -0400 Subject: Use @valuenick@ in glib-gen.mak. So we get usable nicknames for converting enum values to strings. --- glib-gen.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib-gen.mak b/glib-gen.mak index 7aae596e15..f510d80b17 100644 --- a/glib-gen.mak +++ b/glib-gen.mak @@ -29,7 +29,7 @@ --fhead "#include <$*.h>\n#include \"$*-enumtypes.h\"" \ --fprod "\n/* enumerations from \"@filename@\" */" \ --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[] = {" \ - --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@VALUENAME@\" }," \ + --vprod " { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ --vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n" \ $^ > $@ -- cgit v1.2.3