MessageTray: show multiple notifications per source

Add an ability to show multple notifications per source, so that
the user doesn't miss seeing any notifications.

https://bugzilla.gnome.org/show_bug.cgi?id=611611
This commit is contained in:
Marina Zhurakhinskaya
2011-03-21 17:43:34 -04:00
parent f07fe0a8e7
commit 812812d817
3 changed files with 174 additions and 94 deletions

View File

@ -390,8 +390,7 @@ NotificationDaemon.prototype = {
for (let id in this._sources) {
let source = this._sources[id];
if (source.app == tracker.focus_app) {
if (source.notification && !source.notification.resident)
source.notification.destroy();
source.destroyNonResidentNotifications();
return;
}
}
@ -508,10 +507,11 @@ Source.prototype = {
},
open: function(notification) {
this.destroyNonResidentNotifications();
this.openApp();
},
_notificationRemoved: function() {
_lastNotificationRemoved: function() {
if (!this._trayIcon)
this.destroy();
},