[gnome-shell] messageTray: Minor cleanup



commit dfc51ef24348c3074d36eedaf735e38706eab6af
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Mar 17 05:31:02 2015 +0100

    messageTray: Minor cleanup
    
    Chain up to the parent instead of setting up a second signal connection.

 js/ui/messageTray.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index d809ca8..1256a13 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -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);
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]