summaryrefslogtreecommitdiff
path: root/giscanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2010-09-07 12:14:19 -0300
committerJohan Dahlin <johan@gnome.org>2010-09-07 12:14:19 -0300
commit94c627ea578572bc91c596cae3624d241b1c1f99 (patch)
tree4d76de1a14eb82c1aa75d57eda61491f9b53711d /giscanner
parent065f446de2c40b50ab103976cf2c2f10f5fb38f6 (diff)
Revert "[scanner] Revert static method pairing"
Diffstat (limited to 'giscanner')
-rw-r--r--giscanner/maintransformer.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index cd6f8e9..dc09ae2 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -800,12 +800,9 @@ method or constructor of some type."""
if not isinstance(node, (ast.Class, ast.Interface,
ast.Record, ast.Union, glibast.GLibBoxedOther)):
return False
-
- # FIXME: https://bugzilla.gnome.org/show_bug.cgi?id=572408
- #self._namespace.float(func)
- #func.name = funcname
- #node.static_methods.append(func)
- return True
+ self._namespace.float(func)
+ func.name = funcname
+ node.static_methods.append(func)
def _pair_constructor(self, func, subsymbol):
if not (func.symbol.find('_new_') >= 0 or func.symbol.endswith('_new')):