appDisplay: Also scroll on focused indicators

Since now if you focus the indicators, you can't scroll and
change pages in the app picker. That was reported as odd from
some users/developers.
So allow to scroll when the focus is in the indicators.

https://bugzilla.gnome.org/show_bug.cgi?id=707609
This commit is contained in:
Carlos Soriano 2013-09-06 09:30:51 +02:00
parent aa6471b3cc
commit 85d2b9e32a

View File

@ -175,7 +175,8 @@ const PageIndicators = new Lang.Class({
vertical: true, vertical: true,
x_expand: true, y_expand: true, x_expand: true, y_expand: true,
x_align: Clutter.ActorAlign.END, x_align: Clutter.ActorAlign.END,
y_align: Clutter.ActorAlign.CENTER }); y_align: Clutter.ActorAlign.CENTER,
reactive: true });
this._nPages = 0; this._nPages = 0;
this._currentPage = undefined; this._currentPage = undefined;
@ -281,6 +282,7 @@ const AllView = new Lang.Class({
function(indicators, pageIndex) { function(indicators, pageIndex) {
this.goToPage(pageIndex); this.goToPage(pageIndex);
})); }));
this._pageIndicators.actor.connect('scroll-event', Lang.bind(this, this._onScroll));
this.actor.add_actor(this._pageIndicators.actor); this.actor.add_actor(this._pageIndicators.actor);
this._folderIcons = []; this._folderIcons = [];