[gnome-shell/wip/swarm: 13/14] appDisplay: Reset to page 0 on end aniamtion
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/swarm: 13/14] appDisplay: Reset to page 0 on end aniamtion
- Date: Tue, 17 Jun 2014 16:22:43 +0000 (UTC)
commit 66d49e61c360323cef60ac0e54182f7cf0078c0e
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Jun 16 23:03:02 2014 +0200
appDisplay: Reset to page 0 on end aniamtion
js/ui/appDisplay.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 894c2aa..b607fe3 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -342,10 +342,6 @@ const AllView = new Lang.Class({
this._availWidth = 0;
this._availHeight = 0;
- Main.overview.connect('hidden', Lang.bind(this,
- function() {
- this.goToPage(0);
- }));
this._grid.connect('space-opened', Lang.bind(this,
function() {
this._scrollView.get_effect('fade').enabled = false;
@@ -466,6 +462,9 @@ const AllView = new Lang.Class({
this._grid.disconnect(animationDoneId);
if (onCompleteOut)
onCompleteOut();
+ // Reset to the default, so when we open again AllView it
+ // opens in the page 0.
+ this._currentPage = 0;
}));
if (this._displayingPopup && this._currentPopup) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]