summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-01-31 18:23:07 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-02-01 19:47:41 -0500
commit9ca1a568c38e6cae4aa1ab55fe09a63a3892ad18 (patch)
tree1e502ae10fbad6c7a9882aea857cc987b12f0f83
parentac3d35bd4fcf07f86b4ea5a0d71569cc7a49e1c8 (diff)
downloadgobject-introspection-9ca1a568c38e6cae4aa1ab55fe09a63a3892ad18.tar.gz
mallardwriter: Don't use function symbols for vfuncs/signals
-rw-r--r--giscanner/mallardwriter.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index f40bf881..844c3198 100644
--- a/giscanner/mallardwriter.py
+++ b/giscanner/mallardwriter.py
@@ -368,7 +368,10 @@ class MallardFormatterC(MallardFormatter):
return type_.target_fundamental
def format_function_name(self, func):
- return func.symbol
+ if isinstance(func, (ast.Function)):
+ return func.symbol
+ else:
+ return func.name
class MallardFormatterPython(MallardFormatter):
language = "Python"