[gobject-introspection/wip/transformer] [girwriter] Write c:type for callbacks



commit 06e29c7f5f0cd0d899bd229bc5e7da04cd76fcb0
Author: Colin Walters <walters verbum org>
Date:   Thu Jul 29 20:11:23 2010 -0400

    [girwriter] Write c:type for callbacks

 giscanner/girwriter.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index 17f1f81..84c2ba1 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -422,7 +422,9 @@ and/or use gtk-doc annotations. ''')
         self._write_callable(vf, 'virtual-method', attrs)
 
     def _write_callback(self, callback):
-        attrs = [('c:type', callback.c_name)]
+        attrs = []
+        if callback.namespace:
+            attrs.append(('c:type', callback.c_name))
         self._write_callable(callback, 'callback', attrs)
 
     def _boxed_attrs(self, boxed):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]