diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-11-02 04:31:16 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-11-05 02:18:34 +0800 |
commit | 6fdbedf62c34a78d403d0376a4403b2196da0385 (patch) | |
tree | f21f1bd2a9bfdd9f426b7a6a020710b3e450218f | |
parent | 62eb433998d8562d958ca2761ebdf21972294948 (diff) | |
download | gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar.gz gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar.bz2 gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar.lz gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar.xz gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.tar.zst gsoc2013-evolution-6fdbedf62c34a78d403d0376a4403b2196da0385.zip |
Use @valuenick@ in glib-gen.mak.
So we get usable nicknames for converting enum values to strings.
-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" \ $^ > $@ |