diff options
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r-- | giscanner/girwriter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py index 0f5c7002..97f81616 100644 --- a/giscanner/girwriter.py +++ b/giscanner/girwriter.py @@ -473,8 +473,8 @@ and/or use gtk-doc annotations. ''') def _write_callback(self, callback): attrs = [] - if callback.namespace: - attrs.append(('c:type', callback.ctype or callback.c_name)) + if callback.ctype != callback.name: + attrs.append(('c:type', callback.ctype)) self._write_callable(callback, 'callback', attrs) def _write_record(self, record, extra_attrs=[]): |