summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2006-08-08 19:21:51 +0000
committerEdward Hervey <bilboed@bilboed.com>2006-08-08 19:21:51 +0000
commitc070c75beb9ade0f7cfe1ebda7adcda79b7e402b (patch)
tree3279426bbc2e9a0bc194b24c27146e68b12332ca
parente462546b9ac4d59d7c89774400afecb7d9422ef9 (diff)
codegen/codegen.py: newer pygobject's pyg_constant_strip_prefix() now return a const gchar * whereas PyModule_AddIntC...
Original commit message from CVS: * codegen/codegen.py: newer pygobject's pyg_constant_strip_prefix() now return a const gchar * whereas PyModule_AddIntConstant() takes a normal gchar*. Closes #349623
-rw-r--r--ChangeLog7
-rw-r--r--codegen/codegen.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b0b48b8..1cfefa0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-08-08 Edward Hervey <edward@fluendo.com>
+
+ * codegen/codegen.py:
+ newer pygobject's pyg_constant_strip_prefix() now return a const gchar *
+ whereas PyModule_AddIntConstant() takes a normal gchar*.
+ Closes #349623
+
2006-08-05 Andy Wingo <wingo@pobox.com>
* examples/synchronizer.py: Actually appears to work now, will
diff --git a/codegen/codegen.py b/codegen/codegen.py
index 02e5279..a671fe3 100644
--- a/codegen/codegen.py
+++ b/codegen/codegen.py
@@ -1341,7 +1341,7 @@ def write_enums(parser, overrides, prefix, fp=sys.stdout):
for nick, value in enum.values:
fp.write(
' PyModule_AddIntConstant(module, '
- 'pyg_constant_strip_prefix("%s", strip_prefix), %s);\n'
+ '(char *) pyg_constant_strip_prefix("%s", strip_prefix), %s);\n'
% (value, value))
else:
if enum.deftype == 'enum':