gnome-shell/js/ui
Jasper St. Pierre a622aba7eb extensionUtils: Create and allow access to a new "extension" object
The "extension" object is what I previously called the "helper" object.
It contains the extension importer object as well as the metadata object.
Things that were previously added on to the metadata (state, path, dir, etc.)
are now part of this new "extension" object.

With the new importer changes brought on by the extension prefs tool,
extensions are left without a way to import submodules at the global scope,
which would make them rely on techniques like:

  var MySubModule;

  function init(meta) {
      MySubModule = meta.importer.mySubModule;
  }

That is, there's now a lot more meaningless boilerplate that nobody wants
to write and nobody wants to reivew.

Let's solve this with a few clever hacks.
Allow extensions to get their current extension object with:

  let extension = imports.misc.extensionUtils.getCurrentExtension();

As such, extensions can now get their own extension object before the
'init' method is called, so they can import submodules or do other things
at the module scope:

  const MySubModule = extension.imports.mySubModule;
  const dataPath = GLib.build_filenamev([extension.path, 'awesome-data.json']);

https://bugzilla.gnome.org/show_bug.cgi?id=668429
2012-02-07 16:00:37 -05:00
..
status power: Fix icon updates 2012-01-29 23:21:01 +01:00
altTab.js Port everything to class framework 2011-11-24 09:50:04 +01:00
appDisplay.js dash: Move labels beside the app icon upon hovering 2011-12-22 09:07:48 +00:00
appFavorites.js Port everything to class framework 2011-11-24 09:50:04 +01:00
automountManager.js automountManager: Make sure sessionActive is initialized 2012-01-30 00:09:56 +01:00
autorunManager.js autorun-manager: Use app names rather than full names 2011-12-04 15:38:03 +01:00
boxpointer.js Port everything to class framework 2011-11-24 09:50:04 +01:00
calendar.js Port everything to class framework 2011-11-24 09:50:04 +01:00
contactDisplay.js contact-display: Don't show non-IM contacts as "offline" 2012-01-25 21:14:40 +01:00
ctrlAltTab.js Port everything to class framework 2011-11-24 09:50:04 +01:00
dash.js dash: Use the correct theme node for spacing/padding 2012-01-24 22:53:22 +01:00
dateMenu.js a11y: Setting a name/label_actor for several items on the panel 2012-01-27 12:29:52 +01:00
dnd.js Port everything to class framework 2011-11-24 09:50:04 +01:00
docDisplay.js Port all classes with inheritance to class framework 2011-11-24 09:50:04 +01:00
endSessionDialog.js Fix some fallout from background-size addition 2012-01-10 21:50:21 +01:00
environment.js *.js: Make emacs modelines consistent 2011-10-11 08:05:12 -04:00
extensionSystem.js extensionUtils: Create and allow access to a new "extension" object 2012-02-07 16:00:37 -05:00
flashspot.js screenshot: add a 'flash' boolean flag to screenshot methods 2012-01-25 19:20:09 -05:00
iconGrid.js IconGrid: don't force the size of the icon 2011-12-20 19:25:52 +01:00
keyboard.js Port everything to class framework 2011-11-24 09:50:04 +01:00
layout.js layout: Make ripple boxes initially invisible 2011-12-05 10:39:14 +01:00
lightbox.js Port everything to class framework 2011-11-24 09:50:04 +01:00
link.js Port all classes with inheritance to class framework 2011-11-24 09:50:04 +01:00
lookingGlass.js extensionUtils: Create and allow access to a new "extension" object 2012-02-07 16:00:37 -05:00
magnifier.js magnifier: Handle screen size changes 2012-01-26 15:14:48 +00:00
magnifierDBus.js Port everything to class framework 2011-11-24 09:50:04 +01:00
main.js Fix timeout callback leaks 2012-01-17 12:39:03 +01:00
messageTray.js message-tray: Allow to switch between left/right click directly 2012-01-27 14:27:41 +01:00
modalDialog.js Port ModalDialog to the class framework 2011-11-24 09:50:04 +01:00
networkAgent.js Port everything to class framework 2011-11-24 09:50:04 +01:00
notificationDaemon.js notificationDaemon: fix order of arguments to _lookupSource() 2012-01-20 00:03:07 -05:00
overview.js Reintroduce Wanda The Fish 2011-12-20 20:06:14 +01:00
panel.js AppMenuButton: bind "can-focus" to "reactive" 2012-01-27 18:01:22 +00:00
panelMenu.js a11y: Setting a name/label_actor for several items on the panel 2012-01-27 12:29:52 +01:00
placeDisplay.js placeDisplay: Fix accidental swap of parameters 2012-02-02 15:31:46 -05:00
polkitAuthenticationAgent.js Fix timeout callback leaks 2012-01-17 12:39:03 +01:00
popupMenu.js PopupSwitchMenuItem: allow toggling without closing the menu 2012-02-06 16:49:15 +01:00
runDialog.js Port everything to class framework 2011-11-24 09:50:04 +01:00
scripting.js Port client side code to GDBus 2011-11-11 11:15:38 -05:00
search.js Port everything to class framework 2011-11-24 09:50:04 +01:00
searchDisplay.js Port everything to class framework 2011-11-24 09:50:04 +01:00
shellDBus.js extensionUtils: Create and allow access to a new "extension" object 2012-02-07 16:00:37 -05:00
shellEntry.js Port PopupMenu to new Lang.Class framework 2011-11-24 09:50:04 +01:00
shellMountOperation.js mount-operation: set a max-width for the question subject label 2012-02-01 00:57:19 -05:00
statusIconDispatcher.js Port everything to class framework 2011-11-24 09:50:04 +01:00
telepathyClient.js telepathyClient: Fix fallout from Lang.Class port 2012-01-25 02:13:37 -05:00
tweener.js Port everything to class framework 2011-11-24 09:50:04 +01:00
userMenu.js PopupSwitchMenuItem: allow toggling without closing the menu 2012-02-06 16:49:15 +01:00
viewSelector.js workspaces-display: Make workspacesView private 2011-12-01 17:55:13 +01:00
wanda.js Reintroduce Wanda The Fish 2011-12-20 20:06:14 +01:00
windowAttentionHandler.js Port everything to class framework 2011-11-24 09:50:04 +01:00
windowManager.js Port everything to class framework 2011-11-24 09:50:04 +01:00
workspace.js workspace: fix dragging of window thumbnails 2012-01-22 06:06:35 -05:00
workspacesView.js Make the window labels visible at all times 2011-12-08 14:15:13 +00:00
workspaceSwitcherPopup.js Port everything to class framework 2011-11-24 09:50:04 +01:00
workspaceThumbnail.js workspaceThumbnail: avoid bouncing of the drop placeholder above the first workspace 2012-02-06 11:16:28 -05:00
xdndHandler.js Port everything to class framework 2011-11-24 09:50:04 +01:00