messageTray: Minor cleanup

Chain up to the parent instead of setting up a second signal connection.
This commit is contained in:
Florian Müllner 2015-03-17 05:31:02 +01:00
parent a25d2dc256
commit dfc51ef243

View File

@ -1128,7 +1128,6 @@ const NotificationBanner = new Lang.Class({
this.parent(notification);
this.actor.add_style_class_name('notification-banner');
this.actor.connect('destroy', Lang.bind(this, this._onDestroyed));
this._buttonBox = null;
@ -1145,7 +1144,8 @@ const NotificationBanner = new Lang.Class({
}));
},
_onDestroyed: function() {
_onDestroy: function() {
this.parent();
this.notification.disconnect(this._activatedId);
},