[evolution/wip/gsettings] Use @valuenick@ in glib-gen.mak.
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/gsettings] Use @valuenick@ in glib-gen.mak.
- Date: Tue, 9 Nov 2010 22:37:17 +0000 (UTC)
commit 3833e452b9c67039e0a0b7fd83a2f269553f4ee3
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Nov 1 16:31:16 2010 -0400
Use @valuenick@ in glib-gen.mak.
So we get usable nicknames for converting enum values to strings.
glib-gen.mak | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib-gen.mak b/glib-gen.mak
index 7aae596..f510d80 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" \
$^ > $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]