We need to make sure that if something returns an object that hasn't been imported, we run everything required to build up that class, install methods, etc.
This should also be the class if an object inherits from a parent that's also unimported.
That means we should rewrite this code to call a JS hook. Perhaps we install one when the JS code calls Bootstrap.
When importing an object (or other resource) by pointer, we simply get the class template and construct the object:
https://github.com/WebReflection/node-gtk/blob/master/src/gobject.cc#L243-L251
We need to make sure that if something returns an object that hasn't been imported, we run everything required to build up that class, install methods, etc.
This should also be the class if an object inherits from a parent that's also unimported.
That means we should rewrite this code to call a JS hook. Perhaps we install one when the JS code calls
Bootstrap
.https://github.com/WebReflection/node-gtk/blob/master/src/gobject.cc#L163-L182