diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 0367f6078..73bf1370a 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -218,9 +218,11 @@ const NotificationsBox = new Lang.Class({ continue; let body = ''; - if (n.bannerBodyText) + if (n.bannerBodyText) { body = n.bannerBodyMarkup ? n.bannerBodyText : GLib.markup_escape_text(n.bannerBodyMarkup, -1); + } + let label = new St.Label({ style_class: 'screen-shield-notification-count-text' }); label.clutter_text.set_markup('' + n.title + ' ' + body); textBox.add(label); @@ -356,6 +358,11 @@ const NotificationsBox = new Lang.Class({ obj.sourceBox.destroy(); obj.sourceBox = obj.titleLabel = obj.countLabel = null; + if (obj.musicNotification) { + this._musicBin.child = null; + obj.musicNotification = null; + } + source.disconnect(obj.sourceDestroyId); source.disconnect(obj.sourceCountChangedId); source.disconnect(obj.sourceTitleChangedId);