diff options
author | James Henstridge <james@daa.com.au> | 2002-05-04 12:09:23 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2002-05-04 12:09:23 +0000 |
commit | 903f2671498109fb78b49ea6bb7a3f9f6b23c14b (patch) | |
tree | 235cbdf227eb766bc2fd81cbcf699b638b38458d /codegen | |
parent | 0612af60905905881e83830f87495f42106f78f1 (diff) | |
download | pygtk-903f2671498109fb78b49ea6bb7a3f9f6b23c14b.tar.gz |
pass model, path and iter to the callback. (_wrap_gtk_tree_model_foreach):
2002-05-04 James Henstridge <james@daa.com.au>
* gtk/gtk.override (pygtk_tree_foreach_marshal): pass model, path
and iter to the callback.
(_wrap_gtk_tree_model_foreach): implement.
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 |