On 23 February 2013 23:08, Giovanni Campagna <scampa.giova...@gmail.com>wrote:
> Il sab, feb 23, 2013 at 2:51 ,Jason Heeris <jason.hee...@gmail.com> ha > scritto: > > In Gnome Shell 3.6, is there a way to access the namespace and imports > of an extension from the looking glass? For example, to be able to > manually call a function defined in an extension? Or say in an > extension you have this line: > > const Convenience = > ExtensionUtils.getCurrentExtension().imports.convenience; > > How would I access the functions in "Convenience" from the looking glass? > > > Your extension object (that returned by getCurrentExtension()) is at > imports.misc.extensionUtils.extensions[uuid]. > and to get the global vars/imports from that object, look at `ExtensionUtils[uuid].stateObj`. > > Giovanni > > _______________________________________________ > gnome-shell-list mailing list > gnome-shell-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gnome-shell-list > >
_______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list