GNOME Bugzilla – Bug 702047
obsolete power notifications shown in message tray
Last modified: 2013-07-19 15:57:59 UTC
I've seen this a couple of times in the past week, running GNOME 3.8.2 on Fedora 19. In one instance I had three low power notifications in my tray: https://bug687828.bugzilla-attachments.gnome.org/attachment.cgi?id=246371 In another case I had a critical power notification in there.
Created attachment 246613 [details] [review] power: Fix non-transient notifications sticking around When replacing an existing notification with a more up-to-date one, we were closing the existing notification, and creating a new one in its place. As, to clean up when a notification is dismissed by hand, we hook up to the "closed" signal, we ended up zero'ing the pointer to the just shown notification and making it impossible to remove later. eg. - 1st notification created - updated state comes in - notify_close() called - notification pointer is replaced with newer notification - main loop returns - "closed" signal is received for the 1st notification (ah!) - original notification is unref'ed, and its location is zero'd by weak pointer call. That location is that of the new notification as well.
Pushed to gnome-3-8 and master A fix to https://bugs.launchpad.net/bugs/1190209 would be necessary to add it to the test suite Attachment 246613 [details] pushed as 487ab6c - power: Fix non-transient notifications sticking around
*** Bug 704566 has been marked as a duplicate of this bug. ***