[gnome-shell] iconGrid: Cancel animations on unmap
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] iconGrid: Cancel animations on unmap
- Date: Wed, 19 Jul 2017 08:50:42 +0000 (UTC)
commit 865a1cf587feb05c8f55a5baabbc102777519a14
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jul 17 21:58:47 2017 +0200
iconGrid: Cancel animations on unmap
We now cancel animations on override, however we also want to cancel
animations altogether on unmap (that is, when hiding the overview)
to avoid icons swarming into the void.
https://bugzilla.gnome.org/show_bug.cgi?id=736148
js/ui/iconGrid.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js
index bd3c453..deb91e9 100644
--- a/js/ui/iconGrid.js
+++ b/js/ui/iconGrid.js
@@ -276,6 +276,13 @@ var IconGrid = new Lang.Class({
this.actor.add(this._grid, { expand: true, y_align: St.Align.START });
this.actor.connect('style-changed', Lang.bind(this, this._onStyleChanged));
+ // Cancel animations when hiding the overview, to avoid icons
+ // swarming into the void ...
+ this.actor.connect('notify::mapped', () => {
+ if (!this.actor.mapped)
+ this._cancelAnimation();
+ });
+
this._grid.connect('get-preferred-width', Lang.bind(this, this._getPreferredWidth));
this._grid.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
this._grid.connect('allocate', Lang.bind(this, this._allocate));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]