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.
This commit is contained in:
Jasper St. Pierre 2012-02-28 16:51:43 -05:00
parent fde5932b45
commit 8d854d5f1a

View File

@ -562,7 +562,8 @@ const SwitcherList = new Lang.Class({
this._list.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight)); this._list.connect('get-preferred-height', Lang.bind(this, this._getPreferredHeight));
this._list.connect('allocate', Lang.bind(this, this._allocate)); 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); this._scrollView.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER);
let scrollBox = new St.BoxLayout(); let scrollBox = new St.BoxLayout();