[gnome-shell/wip/fmuellner/notification-redux: 81/128] messageTray: Fix notification updates



commit 5540b4ab82168d652690b268a47bff47bf1e7771
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Feb 14 06:10:50 2015 +0100

    messageTray: Fix notification updates

 js/ui/messageTray.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index c6dc8bb..89320cf 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -664,9 +664,9 @@ const Notification = new Lang.Class({
         this.bannerBodyMarkup = params.bannerMarkup;
         this._bannerBodyAdded = false;
 
-        // Add the bannerBody now if we know for sure we'll need it
-        if (this.bannerBodyText)
-            this._addBannerBody();
+        if (params.clear)
+            this._bannerBodyBin.destroy_all_children();
+        this._addBannerBody();
 
         if (this._soundName != params.soundName ||
             this._soundFile != params.soundFile) {


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