[gnome-shell] dash: Don't unnecessarily animate icon size changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dash: Don't unnecessarily animate icon size changes
- Date: Wed, 9 Feb 2011 23:09:27 +0000 (UTC)
commit 165f4e38b7f29577381f1bde78c1935f10d746dd
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 9 23:55:50 2011 +0100
dash: Don't unnecessarily animate icon size changes
We already skip animations for item additions/removals while the
overview is hidden or when initially filling the dash (to avoid
an odd zoom effect when showing), apply the same logic to animations
of icon size changes.
js/ui/dash.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dash.js b/js/ui/dash.js
index e4d18ab..737b35d 100644
--- a/js/ui/dash.js
+++ b/js/ui/dash.js
@@ -434,6 +434,12 @@ Dash.prototype = {
// Set the new size immediately, to keep the icons' sizes
// in sync with this._iconSize
icon.setIconSize(this._iconSize);
+
+ // Don't animate the icon size change when the overview
+ // is not visible or when initially filling the dash
+ if (!Main.overview.visible || !this._shownInitially)
+ continue;
+
let [targetWidth, targetHeight] = icon.icon.get_size();
// Scale the icon's texture to the previous size and
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]