Use best known derived parent
authorColin Walters <walters@verbum.org>
Mon, 19 Oct 2009 22:18:14 +0000 (18:18 -0400)
committerColin Walters <walters@verbum.org>
Wed, 21 Oct 2009 18:19:26 +0000 (14:19 -0400)
commit0d9cfb004d528fd0a7a0b05943db3b2097d8a085
tree4ff2d7c08d762c0ee28e3625cc28af5db743ba7c
parentf152f5e97df7783c61907b5f201840afbd46331f
Use best known derived parent

In the case where a known class derives from a hidden one, we want
to use the most-derived parent class, rather than simply falling back
to GObject.

Example:
ShellEmbedWidget in gnome-shell derives from ClutterGLXTexturePixmap from clutter,
which is a hidden class.  ClutterGLXTexturePixmap's parent itself is
ClutterX11TexturePixmap, which is also hidden.  But its parent is
ClutterTexture, which we do know.  Use that.

https://bugzilla.gnome.org/show_bug.cgi?id=598993
girepository/gdump.c
giscanner/glibtransformer.py