[gnome-shell] extensionDownloader: Clean up names of methods
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensionDownloader: Clean up names of methods
- Date: Mon, 2 Jul 2012 22:31:02 +0000 (UTC)
commit 23e86d7dd5962f51563532f937f56e0718f6b60c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jun 26 20:46:37 2012 -0400
extensionDownloader: Clean up names of methods
FromUUID is redundant.
https://bugzilla.gnome.org/show_bug.cgi?id=679099
js/ui/extensionDownloader.js | 6 +++---
js/ui/shellDBus.js | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js
index 3f2069b..d794085 100644
--- a/js/ui/extensionDownloader.js
+++ b/js/ui/extensionDownloader.js
@@ -22,7 +22,7 @@ const REPOSITORY_URL_INFO = REPOSITORY_URL_BASE + '/extension-info/';
let _httpSession;
-function installExtensionFromUUID(uuid, invocation) {
+function installExtension(uuid, invocation) {
let params = { uuid: uuid,
shell_version: Config.PACKAGE_VERSION };
@@ -49,7 +49,7 @@ function installExtensionFromUUID(uuid, invocation) {
});
}
-function uninstallExtensionFromUUID(uuid) {
+function uninstallExtension(uuid) {
let extension = ExtensionUtils.extensions[uuid];
if (!extension)
return false;
@@ -115,7 +115,7 @@ function gotExtensionZipFile(session, message, uuid, callback, errback) {
try {
ExtensionSystem.loadExtension(extension);
} catch(e) {
- uninstallExtensionFromUUID(uuid);
+ uninstallExtension(uuid);
errback('LoadExtensionError', e);
return;
}
diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js
index e402cab..83074e4 100644
--- a/js/ui/shellDBus.js
+++ b/js/ui/shellDBus.js
@@ -287,11 +287,11 @@ const GnomeShellExtensions = new Lang.Class({
},
InstallRemoteExtensionAsync: function([uuid], invocation) {
- return ExtensionDownloader.installExtensionFromUUID(uuid, invocation);
+ return ExtensionDownloader.installExtension(uuid, invocation);
},
UninstallExtension: function(uuid) {
- return ExtensionDownloader.uninstallExtensionFromUUID(uuid);
+ return ExtensionDownloader.uninstallExtension(uuid);
},
LaunchExtensionPrefs: function(uuid) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]