[gnome-shell] workspaceThumbnails: remove custom scrolling code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] workspaceThumbnails: remove custom scrolling code
- Date: Mon, 25 Feb 2013 23:24:51 +0000 (UTC)
commit 7d78c42dfc7511eea3929708b9bd595598872502
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Feb 25 18:23:42 2013 -0500
workspaceThumbnails: remove custom scrolling code
Now that we listen to scroll event on the whole overview group, this
makes the thumbnail switcher scroll twice per-event.
js/ui/workspaceThumbnail.js | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/js/ui/workspaceThumbnail.js b/js/ui/workspaceThumbnail.js
index aaf2015..540f3d3 100644
--- a/js/ui/workspaceThumbnail.js
+++ b/js/ui/workspaceThumbnail.js
@@ -551,7 +551,6 @@ const ThumbnailsBox = new Lang.Class({
this.actor.connect('button-press-event', function() { return true; });
this.actor.connect('button-release-event', Lang.bind(this, this._onButtonRelease));
- this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
Main.overview.connect('showing',
Lang.bind(this, this._createThumbnails));
@@ -1215,16 +1214,5 @@ const ThumbnailsBox = new Lang.Class({
},
onCompleteScope: this
});
- },
-
- _onScrollEvent: function (actor, event) {
- switch (event.get_scroll_direction()) {
- case Clutter.ScrollDirection.UP:
- Main.wm.actionMoveWorkspace(Meta.MotionDirection.UP);
- break;
- case Clutter.ScrollDirection.DOWN:
- Main.wm.actionMoveWorkspace(Meta.MotionDirection.DOWN);
- break;
- }
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]