[gnome-shell] IconGrid: calculate icon size only once
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] IconGrid: calculate icon size only once
- Date: Tue, 17 Jun 2014 22:04:49 +0000 (UTC)
commit 75c2a723d9accc5486d4d2a7e0d9db11c6dee336
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Wed Jun 18 00:04:34 2014 +0200
IconGrid: calculate icon size only once
js/ui/iconGrid.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index 122fdc6..9cf9f2f 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -530,8 +530,8 @@ const IconGrid = new Lang.Class({
// Note that this is ICON_SIZE as used by BaseIcon, not elsewhere in IconGrid; it's a bit messed up
_updateChildrenScale: function(scale) {
+ let newIconSize = Math.floor(ICON_SIZE * scale);
for (let i in this._items) {
- let newIconSize = Math.floor(ICON_SIZE * scale);
this._items[i].icon.setIconSize(newIconSize);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]