summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarina Zhurakhinskaya <marinaz@redhat.com>2009-06-17 13:54:39 -0400
committerMarina Zhurakhinskaya <marinaz@redhat.com>2009-06-17 13:54:39 -0400
commit71998a6b43875b9a3d4f430030819146c7cc6cd7 (patch)
tree0e5df13902ddbea4ed8598c46208f1af3f17ba8b
parent2fd2293e4a120a438a4f78f3ce15309deaecdb37 (diff)
parent71cad8cd3f7c06f28be11fa27ca349920347f2d1 (diff)
downloadgnome-shell-71998a6b43875b9a3d4f430030819146c7cc6cd7.tar.gz
Merge branch 'master' into my-overlay-design
-rw-r--r--js/misc/appInfo.js2
-rw-r--r--js/ui/appDisplay.js18
2 files changed, 11 insertions, 9 deletions
diff --git a/js/misc/appInfo.js b/js/misc/appInfo.js
index c7bf9c7a4..d77b14746 100644
--- a/js/misc/appInfo.js
+++ b/js/misc/appInfo.js
@@ -44,8 +44,10 @@ AppInfo.prototype = {
if (!this._gAppInfo)
throw new Error('Unknown appId ' + appId);
+ this.id = this._gAppInfo.get_id();
this.name = this._gAppInfo.get_name();
this.description = this._gAppInfo.get_description();
+ this.executable = this._gAppInfo.get_executable();
this._gicon = this._gAppInfo.get_icon();
},
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 0ecd3e15a..0f49f5d5d 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -374,7 +374,7 @@ AppDisplay.prototype = {
_compareItems : function(itemIdA, itemIdB) {
let appA = this._allItems[itemIdA];
let appB = this._allItems[itemIdB];
- return appA.get_name().localeCompare(appB.get_name());
+ return appA.name.localeCompare(appB.name);
},
// Checks if the item info can be a match for the search string by checking
@@ -391,7 +391,7 @@ AppDisplay.prototype = {
},
_isInfoMatchingMenu : function(itemInfo, search) {
- let id = itemInfo.get_id();
+ let id = itemInfo.id;
for (let i = 0; i < this._activeMenuApps.length; i++) {
let activeId = this._activeMenuApps[i];
if (activeId == id)
@@ -404,27 +404,27 @@ AppDisplay.prototype = {
if (search == null || search == '')
return true;
- let name = itemInfo.get_name().toLowerCase();
+ let name = itemInfo.name.toLowerCase();
if (name.indexOf(search) >= 0)
return true;
- let description = itemInfo.get_description();
+ let description = itemInfo.description;
if (description) {
description = description.toLowerCase();
if (description.indexOf(search) >= 0)
return true;
}
- if (itemInfo.get_executable() == null) {
- log("Missing an executable for " + itemInfo.get_name());
+ if (itemInfo.executable == null) {
+ log("Missing an executable for " + itemInfo.name);
} else {
- let exec = itemInfo.get_executable().toLowerCase();
+ let exec = itemInfo.executable.toLowerCase();
if (exec.indexOf(search) >= 0)
return true;
}
- // we expect this._appCategories.hasOwnProperty(itemInfo.get_id()) to always be true here
- let categories = this._appCategories[itemInfo.get_id()];
+ // we expect this._appCategories.hasOwnProperty(itemInfo.id) to always be true here
+ let categories = this._appCategories[itemInfo.id];
for (let i = 0; i < categories.length; i++) {
let category = categories[i].toLowerCase();
if (category.indexOf(search) >= 0)