Import dependencies when importing typelibs from gi.repository
commitdba1da9b0770c7dec1abd82303b9b4266fe2ce3f
authorChristoph Reiter <creiter@src.gnome.org>
Sun, 4 Oct 2015 08:13:35 +0000 (4 10:13 +0200)
committerChristoph Reiter <creiter@src.gnome.org>
Mon, 26 Oct 2015 08:27:03 +0000 (26 09:27 +0100)
treebd45558aba909f2930457189d313005d6c6c50ee
parentdfa3a85290dd97ecd7cbe8f12fbc1ff2db5a1155
Import dependencies when importing typelibs from gi.repository

Recursively import a modules dependencies when importing from
gi.repository.

This fixes the case where a library depends on initialization
code of dependency overrides. For example libwnck expects
gdk_init to be called before using its API and gdk_init
gets called in the Gdk overrrides.

https://bugzilla.gnome.org/show_bug.cgi?id=656314
gi/importer.py
gi/pygi-repository.c
tests/test_import_machinery.py
tests/test_repository.py