Update for review of e57b7ec335

This commit is contained in:
Colin Walters
2009-06-30 15:05:17 -04:00
parent 39e31a3aa9
commit e191636f34
3 changed files with 24 additions and 25 deletions

View File

@@ -351,7 +351,7 @@ AppDisplay.prototype = {
// Sets the list of the displayed items based on the most used apps.
_setDefaultList : function() {
let matchedInfos = AppInfo.getMostUsedApps(MAX_ITEMS);
let matchedInfos = AppInfo.getTopApps(MAX_ITEMS);
this._matchedItems = matchedInfos.map(function(info) { return info.appId; });
},
@@ -519,7 +519,6 @@ WellArea.prototype = {
children = this.actor.get_children();
children.forEach(Lang.bind(this, function (v) {
this.actor.remove_actor(v);
v.destroy();
}));
@@ -550,6 +549,8 @@ WellArea.prototype = {
Mainloop.idle_add(function () {
appSystem.add_favorite(id);
});
} else {
return false;
}
return true;