Deal with types coming from dependencies
In our templates we do things like:
{{ namespace.name }}.{{ class.parent }}
to get the fully qualified name of a type. This falls apart when the class.parent
comes from another namespace; for example, any class under the Gtk
namespace that inherits straight from GObject
will yield something like: Gtk.GObject.Object
.