[gnome-shell/wip/paging-release2: 15/18] AllView: Start always at page 0
- From: Carlos Soriano <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/paging-release2: 15/18] AllView: Start always at page 0
- Date: Fri, 23 Aug 2013 09:44:56 +0000 (UTC)
commit bbd3251d6f4a1a991c37625b7c9ebf3f51e6a695
Author: Carlos Soriano <carlos soriano89 gmail com>
Date: Mon Aug 19 14:02:02 2013 +0200
AllView: Start always at page 0
Reset the AllView scroll adjustment between overview openings,
following design reasons
js/ui/appDisplay.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 3d13db9..f899360 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -330,6 +330,8 @@ const AllView = new Lang.Class({
// we have to tell pagination that the adjustment is not correct (since the allocated size of
pagination changed)
// For that problem we return to the first page of pagination.
this._paginationInvalidated = false;
+
+ Main.overview.connect('hidden', Lang.bind(this, function() {this.goToPage(0, true);}));
},
_onNPagesChanged: function(iconGrid, nPages) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]