[MessageTray] remove Notification IDs
Notification daemon notifications have IDs, but other kinds don't necessarily, and the generic code doesn't need to bother with it. https://bugzilla.gnome.org/show_bug.cgi?id=627303
This commit is contained in:
@ -207,11 +207,11 @@ NotificationDaemon.prototype = {
|
||||
|
||||
if (notification == null) {
|
||||
id = nextNotificationId++;
|
||||
notification = new MessageTray.Notification(id, source, summary, body, true);
|
||||
notification = new MessageTray.Notification(source, summary, body, true);
|
||||
this._currentNotifications[id] = notification;
|
||||
notification.connect('dismissed', Lang.bind(this,
|
||||
function(n) {
|
||||
this._emitNotificationClosed(n.id, NotificationClosedReason.DISMISSED);
|
||||
this._emitNotificationClosed(id, NotificationClosedReason.DISMISSED);
|
||||
}));
|
||||
notification.connect('destroy', Lang.bind(this,
|
||||
function(n) {
|
||||
|
Reference in New Issue
Block a user