[gnome-shell/wip/swarm: 13/14] appDisplay: Reset to page 0 on end aniamtion



commit f545cfad0beccf827b0adf50786989a97834640d
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 288b03b..599e81c 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -377,10 +377,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;
@@ -502,6 +498,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]