[gnome-shell] [appIcon] Fix reference error when favoriting an app
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [appIcon] Fix reference error when favoriting an app
- Date: Tue, 20 Oct 2009 22:50:29 +0000 (UTC)
commit bda7d3994bbd17051ad199dcbb8c0f868b8deb56
Author: Colin Walters <walters verbum org>
Date: Tue Oct 20 18:49:15 2009 -0400
[appIcon] Fix reference error when favoriting an app
js/ui/appIcon.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appIcon.js b/js/ui/appIcon.js
index ab8ede1..b0a37b6 100644
--- a/js/ui/appIcon.js
+++ b/js/ui/appIcon.js
@@ -557,7 +557,8 @@ AppIconMenu.prototype = {
this._source.app.launch();
this.emit('activate-window', null);
} else if (child == this._toggleFavoriteMenuItem) {
- let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
+ let favs = AppFavorites.getAppFavorites();
+ let isFavorite = favs.isFavorite(this._source.app.get_id());
if (isFavorite)
favs.removeFavorite(this._source.app.get_id());
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]