[gobject-introspection] mallardwriter: Don't use function symbols for vfuncs/signals



commit 9ca1a568c38e6cae4aa1ab55fe09a63a3892ad18
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 31 18:23:07 2013 -0500

    mallardwriter: Don't use function symbols for vfuncs/signals

 giscanner/mallardwriter.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/mallardwriter.py b/giscanner/mallardwriter.py
index f40bf88..844c319 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"



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