Small fixes for sidebar application bits

We need to set the .name property, also skip unknown apps.
This commit is contained in:
Colin Walters 2009-07-10 17:04:39 -04:00
parent 8a56b990dd
commit b45cd0a4eb

View File

@ -290,6 +290,7 @@ function AppsWidgetInfo(appInfo) {
AppsWidgetInfo.prototype = {
_init : function(appInfo) {
this._info = appInfo;
this.name = appInfo.get_name();
},
createIcon : function(size) {
@ -319,6 +320,8 @@ AppsWidget.prototype = {
let apps = appSystem.get_favorites();
for (let i = 0; i < apps.length; i++) {
let app = appSystem.lookup_app(apps[i]);
if (!app)
continue;
this.addItem(new AppsWidgetInfo(app));
}
}