After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661615 - messageTray: Fix scrolling up in the message tray
messageTray: Fix scrolling up in the message tray
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 665363 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-10-13 00:01 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2012-05-02 20:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
messageTray: Remove scrollArea (9.65 KB, patch)
2011-10-13 00:01 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
messageTray: notification should be a style class name, not a global name (4.88 KB, patch)
2011-10-13 00:01 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
messageTray: Remove scrollArea (9.70 KB, patch)
2011-10-13 01:25 UTC, Jasper St. Pierre (not reading bugmail)
none Details | Review
messageTray: notification should be a style class name, not a global name (5.14 KB, patch)
2011-10-25 00:07 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
messageTray: disable scrolling for real (1.15 KB, patch)
2011-10-25 00:08 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2011-10-13 00:01:10 UTC
Letting them fight with each other isn't really a good idea... it's the reason
that you can't scroll down after scrolling a notification up in the summary
view.

Note: the behavior you see here is hard to describe, so I highly recommend
trying it out for yourself. Pasting the first paragraph of The Declaration of
Independence into notify-send gave me a long enough message to test with.
Comment 1 Jasper St. Pierre (not reading bugmail) 2011-10-13 00:01:12 UTC
Created attachment 198891 [details] [review]
messageTray: Remove scrollArea

We already use a ScrollView for the notifications stack, and fighing with it
for scroll events isn't really a good idea.
Comment 2 Jasper St. Pierre (not reading bugmail) 2011-10-13 00:01:15 UTC
Created attachment 198892 [details] [review]
messageTray: notification should be a style class name, not a global name

There have been multiple notifications ever since we had a notification stack
per source, so the idea of one notification being on screen at a time has long
been dead.
Comment 3 Jasper St. Pierre (not reading bugmail) 2011-10-13 01:25:02 UTC
Created attachment 198896 [details] [review]
messageTray: Remove scrollArea

We already use a ScrollView for the notifications stack, and fighing with it
for scroll events isn't really a good idea.



--

Needs the fix from bug #661617 to fix a crash.

Fixes an issue with reparenting the notification to put it in the summary item stack.
Comment 4 Jasper St. Pierre (not reading bugmail) 2011-10-25 00:07:59 UTC
Created attachment 199874 [details] [review]
messageTray: notification should be a style class name, not a global name

There have been multiple notifications ever since we had a notification stack
per source, so the idea of one notification being on screen at a time has long
been dead.
Comment 5 Jasper St. Pierre (not reading bugmail) 2011-10-25 00:08:13 UTC
Created attachment 199875 [details] [review]
messageTray: disable scrolling for real

You could scroll up, but not down, while in a stack view. This was because of
some silly StAdjustment shenanigans that isn't particularily important. Just
disable mouse wheel scrolling when we're in a stack view.



This is a much easier, less breaky, alternate solution.
Comment 6 Jasper St. Pierre (not reading bugmail) 2011-12-02 15:02:18 UTC
*** Bug 665363 has been marked as a duplicate of this bug. ***
Comment 7 Jasper St. Pierre (not reading bugmail) 2012-04-25 22:01:33 UTC
Ping on this?
Comment 8 drago01 2012-05-02 19:58:41 UTC
Review of attachment 199874 [details] [review]:

Makes sense.
Comment 9 drago01 2012-05-02 20:04:42 UTC
Review of attachment 199875 [details] [review]:

Code is fine and works but the commit message is rather confusing you should note that we have nested scrollviews and that we disable the mousewheel scrolling for the notifications rather then the whole stack.
Comment 10 Jasper St. Pierre (not reading bugmail) 2012-05-02 20:13:37 UTC
Attachment 199874 [details] pushed as 399df66 - messageTray: notification should be a style class name, not a global name


Pushed with modified commit message.