[gegl-gtk] Correct autoscale policy enum’s value na me
- From: Daniel Sabo <daniels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl-gtk] Correct autoscale policy enum’s value na me
- Date: Sun, 9 Feb 2014 22:55:44 +0000 (UTC)
commit d2c1a316446d1028ed4d667e690e49e305ba8a04
Author: jordi fita i mas <gmf trasto cat>
Date: Sat Feb 1 16:35:00 2014 +0100
Correct autoscale policy enum’s value name
The enumeration’s name must be in upper case for vapigen to generate the
correct output; otherwise it wrongly assumes the value’s name is
lowercase and the C compiler can’t find it.
* gegl-gtk/Makefile.am: Change the call to glib-mkenums to output
VALUENAME as the first string instead of valuenick.
gegl-gtk/Makefile.am | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl-gtk/Makefile.am b/gegl-gtk/Makefile.am
index b823646..335d463 100644
--- a/gegl-gtk/Makefile.am
+++ b/gegl-gtk/Makefile.am
@@ -30,7 +30,7 @@ gegl-gtk-enums.c: $(srcdir)/gegl-gtk-enums.h
--fhead "/* This is a generated file, do not edit directly */\n\n#include
\"config.h\"\n#include <glib-object.h>\n#include \"gegl-gtk-enums.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@, \"@valuenick \", \"@valuenick \" }," \
+ --vprod " { @VALUENAME@, \"@VALUENAME \", \"@valuenick \" }," \
--vtail " { 0, NULL, NULL }\n };\n etype = g_ type@_register_static
(\"@EnumName \", values);\n }\n return etype;\n}\n\n" \
$(srcdir)/gegl-gtk-enums.h > gegl-gtk-enums.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]