[gnome-shell] appDisplay: Also scroll on focused indicators



commit 85d2b9e32aa1d4539ba1077f88e1231dfe6de6d1
Author: Carlos Soriano <carlos soriano89 gmail com>
Date:   Fri Sep 6 09:30:51 2013 +0200

    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

 js/ui/appDisplay.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 7263ef0..dbcb8d9 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -175,7 +175,8 @@ const PageIndicators = new Lang.Class({
                                         vertical: true,
                                         x_expand: true, y_expand: true,
                                         x_align: Clutter.ActorAlign.END,
-                                        y_align: Clutter.ActorAlign.CENTER });
+                                        y_align: Clutter.ActorAlign.CENTER,
+                                        reactive: true });
         this._nPages = 0;
         this._currentPage = undefined;
 
@@ -281,6 +282,7 @@ const AllView = new Lang.Class({
             function(indicators, pageIndex) {
                 this.goToPage(pageIndex);
             }));
+        this._pageIndicators.actor.connect('scroll-event', Lang.bind(this, this._onScroll));
         this.actor.add_actor(this._pageIndicators.actor);
 
         this._folderIcons = [];


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]