diff options
Diffstat (limited to 'codegen')
-rw-r--r-- | codegen/argtypes.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/codegen/argtypes.py b/codegen/argtypes.py index 056e8384..2b323c73 100644 --- a/codegen/argtypes.py +++ b/codegen/argtypes.py @@ -641,7 +641,12 @@ class ArgMatcher: self.register('const-'+ptype+'*', arg) def get(self, ptype): - return self.argtypes[ptype] + try: + return self.argtypes[ptype] + except KeyError: + if ptype[:8] == 'GdkEvent' and ptype[-1] == '*': + return self.argtypes['GdkEvent*'] + raise def object_is_a(self, otype, parent): if otype == None: return 0 if otype == parent: return 1 |