extensionSystem: Save extension errors per-extension

Extension developers may be confused about why their extensions aren't working:
the LookingGlass isn't a very obvious place, or even which errors are theirs.
To remedy this, save all errors per-UUID which allows them to be retrieved
later.

https://bugzilla.gnome.org/show_bug.cgi?id=654770
This commit is contained in:
Jasper St. Pierre
2011-06-22 21:41:30 -04:00
parent 2466eb3132
commit 5810fcb14d
2 changed files with 34 additions and 17 deletions

View File

@ -20,6 +20,10 @@ const GnomeShellIface = {
inSignature: 's',
outSignature: 'a{sv}'
},
{ name: 'GetExtensionErrors',
inSignature: 's',
outSignature: 'as'
}
],
signals: [],
properties: [{ name: 'OverviewActive',
@ -80,6 +84,10 @@ GnomeShell.prototype = {
return ExtensionSystem.extensionMeta[uuid] || {};
},
GetExtensionErrors: function(uuid) {
return ExtensionSystem.errors[uuid] || [];
},
get OverviewActive() {
return Main.overview.visible;
},