summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2012-08-29 06:07:14 -0300
committerJasper St. Pierre <jstpierre@mecheye.net>2012-08-29 15:00:32 -0300
commite1ab409a39a3418fd33c0a10905a616dd46d500c (patch)
tree6d5bc80f53741671a3cbd21ca8ff41ab6dfa4d1e /giscanner/girwriter.py
parent4f6f32dcb1942063508fa002fd0bc83a362c96b6 (diff)
downloadgobject-introspection-e1ab409a39a3418fd33c0a10905a616dd46d500c.tar.gz
mallardwriter: Fix formatting the function name
This is not what format_type is for.
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py4
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=[]):