[gnome-shell] [AppIcon] Remove redundant window array



commit 8f660f563c916c64734a95cf4765a8c223af8703
Author: Dan Winship <danw gnome org>
Date:   Fri Sep 18 12:06:07 2009 -0400

    [AppIcon] Remove redundant window array

 js/ui/appIcon.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/appIcon.js b/js/ui/appIcon.js
index 1cd2eca..5ae1ce9 100644
--- a/js/ui/appIcon.js
+++ b/js/ui/appIcon.js
@@ -45,8 +45,6 @@ AppIcon.prototype = {
 
         this.actor.append(iconBox, Big.BoxPackFlags.EXPAND);
 
-        this._windows = Shell.AppMonitor.get_default().get_windows_for_app(appInfo.get_id());
-
         let nameBox = new Shell.GenericContainer();
         nameBox.connect('get-preferred-width', Lang.bind(this, this._nameBoxGetPreferredWidth));
         nameBox.connect('get-preferred-height', Lang.bind(this, this._nameBoxGetPreferredHeight));
@@ -61,7 +59,7 @@ AppIcon.prototype = {
         nameBox.add_actor(this._name);
         this._glowBox = new Big.Box({ orientation: Big.BoxOrientation.HORIZONTAL });
         let glowPath = GLib.filename_to_uri(global.imagedir + 'app-well-glow.png', '');
-        for (let i = 0; i < this._windows.length && i < 3; i++) {
+        for (let i = 0; i < this.windows.length && i < 3; i++) {
             let glow = Shell.TextureCache.get_default().load_uri_sync(Shell.TextureCachePolicy.FOREVER,
                                                                           glowPath, -1, -1);
             glow.keep_aspect_ratio = false;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]