aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-11-02 04:31:16 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2010-11-10 06:33:22 +0800
commit3833e452b9c67039e0a0b7fd83a2f269553f4ee3 (patch)
treefeffc343d37e227a054dc9e1ccd2205e900549c4
parent1f287aa8caefaa1576d28420b7114e64f45e573b (diff)
downloadgsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar
gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.gz
gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.bz2
gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.lz
gsoc2013-evolution-3833e452b9c67039e0a0b7fd83a2f269553f4ee3.tar.xz
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.
-rw-r--r--glib-gen.mak2
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" \
$^ > $@