GNOME Bugzilla – Bug 683377
AutorunManager: fix regression from the components rewrite
Last modified: 2012-09-05 15:03:55 UTC
Message tray sources cannot be reused after destruction. Reinstate the code that created a new source when the previous one was destroyed.
Created attachment 223486 [details] [review] AutorunManager: fix regression from the components rewrite
Review of attachment 223486 [details] [review]: How would the source be destroyed? I never liked this hack in the first place.
(In reply to comment #2) > Review of attachment 223486 [details] [review]: > > How would the source be destroyed? I never liked this hack in the first place. The source is destroyed because the notification is destroyed. The notification is destroyed when the last mount is removed. If you don't destroy the notification, you get an empty list of mounts. If you don't destroy the source, you get an icon with no notification.
(In reply to comment #3) > (In reply to comment #2) > > Review of attachment 223486 [details] [review] [details]: > > > > How would the source be destroyed? I never liked this hack in the first place. > > The source is destroyed because the notification is destroyed. The notification > is destroyed when the last mount is removed. > If you don't destroy the notification, you get an empty list of mounts. > If you don't destroy the source, you get an icon with no notification. This is correct, right? So what we want is not to recreate the source when destroyed, but ensure that we create a new one if we're going from 0 mounts to 1 mount.
Created attachment 223545 [details] [review] AutorunManager: fix regression from the components rewrite Message tray sources cannot be reused after destruction, so connect to 'destroy' signal and clear out the previous one. Also, fix some code paths that used the autorun manager incorrectly. Need moar regressions, moar regressions!
Review of attachment 223545 [details] [review]: Yes.
Attachment 223545 [details] pushed as 09c81f7 - AutorunManager: fix regression from the components rewrite