[gnome-shell] altTab: Disable mouse scrolling on the new ScrollView
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] altTab: Disable mouse scrolling on the new ScrollView
- Date: Tue, 28 Feb 2012 21:55:04 +0000 (UTC)
commit 8d854d5f1a781a58ca9b6f49f970a25030d2a66c
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 28 16:51:43 2012 -0500
altTab: Disable mouse scrolling on the new ScrollView
We handle scroll events ourselves, so we don't want the scroll view
to attempt to scroll on it.
js/ui/altTab.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 0c0b038..929f494 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -562,7 +562,8 @@ const SwitcherList = new Lang.Class({
this._list.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
this._list.connect('allocate', Lang.bind(this, this._allocate));
- this._scrollView = new St.ScrollView({ style_class: 'hfade' });
+ this._scrollView = new St.ScrollView({ style_class: 'hfade',
+ enable_mouse_scrolling: false });
this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER);
let scrollBox = new St.BoxLayout();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]