diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-02 04:31:16 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2010-11-10 06:33:22 +0800 |
commit | 3833e452b9c67039e0a0b7fd83a2f269553f4ee3 (patch) | |
tree | feffc343d37e227a054dc9e1ccd2205e900549c4 /glib-gen.mak | |
parent | 1f287aa8caefaa1576d28420b7114e64f45e573b (diff) | |
download | gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.gz gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.zst gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.zip |
Use @valuenick@ in glib-gen.mak.
So we get usable nicknames for converting enum values to strings.
Diffstat (limited to 'glib-gen.mak')
-rw-r--r-- | glib-gen.mak | 2 |
1 files changed, 1 insertions, 1 deletions
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" \ $^ > $@ |