[gnome-shell] Small fixes for sidebar application bits
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Small fixes for sidebar application bits
- Date: Fri, 10 Jul 2009 21:05:13 +0000 (UTC)
commit b45cd0a4eb3ae055b127773a8f1dc3eafe0387e8
Author: Colin Walters <walters verbum org>
Date: Fri Jul 10 17:04:39 2009 -0400
Small fixes for sidebar application bits
We need to set the .name property, also skip unknown apps.
js/ui/widget.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/widget.js b/js/ui/widget.js
index 0d326ae..d4f661c 100644
--- a/js/ui/widget.js
+++ b/js/ui/widget.js
@@ -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));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]