GIRepository = imports.gi.GIRepository;
GIRepository.IRepository.prepend_search_path(....)
or more recent introspection (remove the 'I' before Repository
GIRepository.Repository.prepend_search_path(
It's documented here:
http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/GIRepository.Repository.html
otherwise you can do this in bash
export GI_TYPELIB_PATH=~/.Builder/girepository-1.1
Example here:
http://www.roojs.com/mtrack/index.php/File/default/app.Builder.js/gtkrun.js
Regards
Alan
On Saturday, April 30, 2011 06:09 PM, Thomas Bollmeier wrote:
Hi
gjs-experts,
currently I dive into the topic of gobject-introspection and its
use in _javascript_. So far I have been able to add introspection
support to my sample GObject demo application and created .gir and
.typelib files. Now I would like to call my demo object from gjs.
The typelib file had been installed to a test install path (lets
assume it is
/home/user_name/opt/mydemo/lib/girepository-1.0/Demo-0.1.0.typelib).
Is there any environment variable or option for gjs to make this
typelib path known to GJS so that a statement "const Demo =
imports.gi.Demo;" would work within gjs?
Regards,
Thomas
_______________________________________________
_javascript_-list mailing list
_javascript_-list gnome org
http://mail.gnome.org/mailman/listinfo/_javascript_-list
|