browser-plugin: Provide new APIs for launching extension preferences

Add two new APIs, "launchExtensionPrefs" to let SweetTooth let the user
launch the extension preferences tool directly from the browser. To allow
SweetTooth to check if an extension can be configured, add a new key to
the 'metadata', 'hasPrefs', which is returned by the GetExtensionInfo/
ListExtensions DBus methods.

https://bugzilla.gnome.org/show_bug.cgi?id=668429
This commit is contained in:
Jasper St. Pierre
2012-01-18 21:30:06 -05:00
parent b8a54faf94
commit 831099cca5
3 changed files with 55 additions and 2 deletions

View File

@ -99,6 +99,7 @@ function loadMetadata(uuid, dir, type) {
meta.dir = dir;
meta.path = dir.get_path();
meta.error = '';
meta.hasPrefs = dir.get_child('prefs.js').query_exists(null);
return meta;
}