summaryrefslogtreecommitdiff
path: root/codegen/codegen.py
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-09-25 13:45:44 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-09-25 13:45:44 +0000
commit1703c8495fcd611fbdb1ffe20eb27c536af9d2aa (patch)
treefddb49c450eca85e41002f4559e017a318427924 /codegen/codegen.py
parent6b87a28b01c8a6cf92be9272413fca2abcc97df6 (diff)
downloadpygtk-python22-branch.tar.gz
getter for __dict__ on GObject wrappers. (PyGObject_Type): include getsetspython22-branch
2001-09-25 James Henstridge <james@daa.com.au> * gobjectmodule.c (pygobject_get_dict): getter for __dict__ on GObject wrappers. (PyGObject_Type): include getsets list. * codegen/codegen.py (write_getsets): change "struct getsets" to PyGetSetDef to match recent changes in python.
Diffstat (limited to 'codegen/codegen.py')
-rw-r--r--codegen/codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/codegen.py b/codegen/codegen.py
index 00e392be..4a5c28b3 100644
--- a/codegen/codegen.py
+++ b/codegen/codegen.py
@@ -392,7 +392,7 @@ def write_getsets(parser, objobj, castmacro, overrides, fp=sys.stdout):
#traceback.print_exc()
if not getsets:
return '0'
- fp.write('static struct getsetlist %s[] = {\n' % getsets_name)
+ fp.write('static PyGetSetDef %s[] = {\n' % getsets_name)
for getset in getsets:
fp.write(getset)
fp.write(' { NULL, (getter)0, (setter)0 },\n')