[gnome-shell] messageTray: Fix scroll bugginess in summary items
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Fix scroll bugginess in summary items
- Date: Wed, 2 May 2012 20:13:29 +0000 (UTC)
commit 01f9d551f135379262ad55ad1e42f11da343db29
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Oct 24 20:06:39 2011 -0400
messageTray: Fix scroll bugginess in summary items
Two nested scroll views were fighing with each other. The reason isn't
particularly important and has to do with some silliness involving
StAdjustment. The visible effect was that scrolling up and down when
in a summary item view would appear to be glitchy, and sometimes not
work at all.
To fix, make sure that the scroll view we don't care about is disabled
when in a summary mode.
https://bugzilla.gnome.org/show_bug.cgi?id=661615
js/ui/messageTray.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 19b3baf..7358b28 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -586,8 +586,10 @@ const Notification = new Lang.Class({
enableScrolling: function(enableScrolling) {
this._scrollPolicy = enableScrolling ? Gtk.PolicyType.AUTOMATIC : Gtk.PolicyType.NEVER;
- if (this._scrollArea)
+ if (this._scrollArea) {
this._scrollArea.vscrollbar_policy = this._scrollPolicy;
+ this._scrollArea.enable_mouse_scrolling = enableScrolling;
+ }
},
_createScrollArea: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]