summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-09-14 13:08:50 -0400
committerColin Walters <walters@verbum.org>2010-09-14 13:09:19 -0400
commitd8c4caf990642050049ba0cff7b6916e01c354da (patch)
tree59c7a00479017f8cb51ff43e89afa5cc8f9d80f2 /giscanner/girwriter.py
parentc29368bab2ad74958376576d18365898c6b7ca39 (diff)
downloadgobject-introspection-d8c4caf990642050049ba0cff7b6916e01c354da.tar.gz
scanner: Add c_type for callbacks
We weren't doing this consistently, which broke nsname != cprefix cases. https://bugzilla.gnome.org/show_bug.cgi?id=629683
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index d3b023aa..80e1719a 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -430,7 +430,7 @@ and/or use gtk-doc annotations. ''')
def _write_callback(self, callback):
attrs = []
if callback.namespace:
- attrs.append(('c:type', callback.c_name))
+ attrs.append(('c:type', callback.ctype or callback.c_name))
self._write_callable(callback, 'callback', attrs)
def _write_record(self, record, extra_attrs=[]):