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 686855 - When closing a notification, the close button lags behind the notification (should rather fade out or simply disappear)
When closing a notification, the close button lags behind the notification (s...
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 689311 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-10-25 09:54 UTC by Volker Sobek (weld)
Modified: 2013-08-06 12:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MessageTray: fix immediate hiding of destroyed sources (1.60 KB, patch)
2012-10-25 16:36 UTC, Giovanni Campagna
committed Details | Review

Description Volker Sobek (weld) 2012-10-25 09:54:32 UTC
When a notification shows up and you close it with the close button, the notification slides down and the close button desperately tries to keep up with it but lacks behind. Not nice. It would look better if it would fade out or just disappear.

For the final design for closing notifications see [0], but I don't know if that is still valid.

[0] http://www.youtube.com/watch?v=14z4wdgNF9g&feature=player_detailpage#t=44s
Comment 1 Giovanni Campagna 2012-10-25 16:36:26 UTC
Created attachment 227287 [details] [review]
MessageTray: fix immediate hiding of destroyed sources

Previously the code to hide the boxpointer without animation for
destroyed source would check the number of notifications, and activate
if it was 0, but because the signal handler was installed before that
of notifications, it would run before they were removed from the list,
thus always taking the animated path.
Comment 2 Florian Müllner 2012-10-25 17:38:38 UTC
I'd prefer to keep animating the notification while hiding the button immediately, see bug 682237 (which already covers this issue).
Comment 3 Giovanni Campagna 2012-10-25 17:47:41 UTC
Bug 682237 covers a slightly different issue (whether or not the source is destroyed after pressing Close).
But I'm ok with marking it duplicate, if you want.
Comment 4 Jasper St. Pierre (not reading bugmail) 2012-10-25 21:00:15 UTC
This is a different issue, which is the cause of the "empty bubble" when destroying an item from within the tray, as far as I know. It's fairly clear the code is broken anyway, but I think we can just remove it now.
Comment 5 Giovanni Campagna 2012-10-25 21:19:32 UTC
I'm not sure what you mean that the code is broken (it works fine with the patch), or what part you're proposing to remove...
Comment 6 Jasper St. Pierre (not reading bugmail) 2012-10-25 21:22:09 UTC
I meant the existing code that you pointed out is broken. Instead of replacing it with a destroyed property, just remove it outright.
Comment 7 Giovanni Campagna 2012-10-25 21:23:24 UTC
Uhm... If I remove that code, I get the empty bubble thing when the source is destroyed. Is that what you want?
Comment 8 Jasper St. Pierre (not reading bugmail) 2012-10-25 21:25:02 UTC
(In reply to comment #7)
> Uhm... If I remove that code, I get the empty bubble thing when the source is
> destroyed. Is that what you want?

This should be covered by bug #686888.
Comment 9 Volker Sobek (weld) 2012-11-05 10:58:55 UTC
Was this fixed by https://bugzilla.gnome.org/show_bug.cgi?id=682237#c29 ?
Comment 10 Giovanni Campagna 2012-11-05 17:05:58 UTC
Yes, this bug is fixed in master.
Comment 11 Giovanni Campagna 2012-11-30 17:38:21 UTC
Reopening, the patch here fixes 689311.
Comment 12 Giovanni Campagna 2012-11-30 17:38:33 UTC
*** Bug 689311 has been marked as a duplicate of this bug. ***
Comment 13 Reda Lazri 2012-12-01 09:59:34 UTC
Giovanni, while this patch fixes the glitch for non-persistent notifications; the issue still happens when the icon does not go away.

This is how to verify:

- Use a program that puts an icon in the notification area(audio player).
- Activation the notification on track changes.
- Change the track.
- Miss the notification on purpose.
- Ctrl+M
- Click on the icon.
- And click on the body of the notification.
- Notice how it shrinks awkwardly.
- Profit. :)
Comment 14 Giovanni Campagna 2013-08-06 12:47:42 UTC
Reviewed by Jasper St. Pierre at Guadec.