Re: Accessing an extension's namespace in the looking glass
- From: Giovanni Campagna <scampa giovanni gmail com>
- To: Jason Heeris <jason heeris gmail com>
- Cc: gnome-shell-list <gnome-shell-list gnome org>
- Subject: Re: Accessing an extension's namespace in the looking glass
- Date: Sat, 23 Feb 2013 13:09:34 +0001
Il sab, feb 23, 2013 at 2:51 ,Jason Heeris <jason heeris 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].
Giovanni
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]