summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-01-22 21:47:24 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2005-01-22 21:47:24 +0000
commitf48c4d0b23402957c8cf9230cc766098ac4e7b1b (patch)
treec192e96333bffcc8124c8b5054f281e1699d27e5 /codegen
parenta54e7a038330accdd25ca5e6a4358c2cacaf5bd8 (diff)
downloadpygtk-f48c4d0b23402957c8cf9230cc766098ac4e7b1b.tar.gz
Bug 159468: A subclassed gdk.GC does not have the usual attributes
Diffstat (limited to 'codegen')
-rw-r--r--codegen/codegen.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/codegen/codegen.py b/codegen/codegen.py
index 3b3d1390..83d9805f 100644
--- a/codegen/codegen.py
+++ b/codegen/codegen.py
@@ -98,8 +98,8 @@ class Wrapper:
' (hashfunc)%(tp_hash)s, /* tp_hash */\n' \
' (ternaryfunc)%(tp_call)s, /* tp_call */\n' \
' (reprfunc)%(tp_str)s, /* tp_str */\n' \
- ' (getattrofunc)0, /* tp_getattro */\n' \
- ' (setattrofunc)0, /* tp_setattro */\n' \
+ ' (getattrofunc)%(tp_getattro)s, /* tp_getattro */\n' \
+ ' (setattrofunc)%(tp_setattro)s, /* tp_setattro */\n' \
' (PyBufferProcs*)%(tp_as_buffer)s, /* tp_as_buffer */\n' \
' %(tp_flags)s, /* tp_flags */\n' \
' NULL, /* Documentation string */\n' \
@@ -124,7 +124,8 @@ class Wrapper:
' (inquiry)%(tp_is_gc)s /* tp_is_gc */\n' \
'};\n\n'
- slots_list = ['tp_getattr', 'tp_setattr', 'tp_compare', 'tp_repr',
+ slots_list = ['tp_getattr', 'tp_setattr', 'tp_getattro', 'tp_setattro',
+ 'tp_compare', 'tp_repr',
'tp_as_number', 'tp_as_sequence', 'tp_as_mapping', 'tp_hash',
'tp_call', 'tp_str', 'tp_as_buffer', 'tp_richcompare', 'tp_iter',
'tp_iternext', 'tp_descr_get', 'tp_descr_set', 'tp_init',