diff options
author | Dan Winship <danw@gnome.org> | 2011-10-13 12:21:22 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2011-10-13 12:37:00 -0400 |
commit | 52e12815dc33af5dab95c08d29396c48ed8055c9 (patch) | |
tree | 10d7cb3f5be1cb9c38d639c170f94c25df5c66f9 /giscanner | |
parent | 2fff9866fd7f9de0fb8a7ac08d6c27a14c1f3f42 (diff) | |
download | gobject-introspection-52e12815dc33af5dab95c08d29396c48ed8055c9.tar.gz |
scanner: allow GObject.Object as a superclass return type
6172c268 made the scanner think GObject* wasn't a superclass of its
subclasses. Fix that.
https://bugzilla.gnome.org/show_bug.cgi?id=661677
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/maintransformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py index a921ad47..5b1ffb79 100644 --- a/giscanner/maintransformer.py +++ b/giscanner/maintransformer.py @@ -1166,7 +1166,7 @@ method or constructor of some type.""" parent = self._transformer.lookup_typenode(parent.parent) else: parent = None - if parent is None or parent.gi_name == 'GObject.Object': + if parent is None: message.warn_node(func, "Return value is not superclass for constructor; " "symbol=%r constructed=%r return=%r" % ( |