summaryrefslogtreecommitdiff
path: root/giscanner/girwriter.py
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2010-09-07 12:44:38 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2010-09-07 13:23:25 -0400
commitd80c8a8c2d3343c5280c1549aa604eb88695272e (patch)
treedb4dbbc1fd84d1873428ae76c8648938ec410b00 /giscanner/girwriter.py
parenta613283ee5f4a6a6a4e137bdd1de231d2a6210a0 (diff)
downloadgobject-introspection-d80c8a8c2d3343c5280c1549aa604eb88695272e.tar.gz
Go back to previously handling of static methods on non-GObjects
Previous to the scanner rewrite, static methods were only handled for GObject subclasses. Go back to that for full compatibility with existing bindings and code. See bug 572408 for the topic of changing the API. The code for writing out static methods for records and boxed is left as future proofing, and the same handling is added for interfaces. https://bugzilla.gnome.org/show_bug.cgi?id=628967
Diffstat (limited to 'giscanner/girwriter.py')
-rw-r--r--giscanner/girwriter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/girwriter.py b/giscanner/girwriter.py
index f2074df3..883e4e39 100644
--- a/giscanner/girwriter.py
+++ b/giscanner/girwriter.py
@@ -379,6 +379,7 @@ and/or use gtk-doc annotations. ''')
if isinstance(node, Class):
for method in sorted(node.constructors):
self._write_constructor(method)
+ if isinstance(node, (Class, Interface)):
for method in sorted(node.static_methods):
self._write_static_method(method)
for vfunc in sorted(node.virtual_methods):