[gnome-shell] [MessageTray] Clear bannerText before re-adding on updates
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [MessageTray] Clear bannerText before re-adding on updates
- Date: Mon, 22 Feb 2010 19:07:28 +0000 (UTC)
commit b2db95380b49483fe1e688751427c58cfa49f85d
Author: Florian Müllner <fmuellner src gnome org>
Date: Mon Feb 22 20:06:13 2010 +0100
[MessageTray] Clear bannerText before re-adding on updates
Currently only the old title/summary line is removed from
notifications before setting the updated values - do the
same for bannerText if applicable.
js/ui/messageTray.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 188a55f..62011a2 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -80,7 +80,7 @@ Notification.prototype = {
let children = this.actor.get_children();
for (let i = 0; i < children.length; i++) {
let meta = this.actor.get_child_meta(children[i]);
- if (clear || meta.row == 0)
+ if (clear || meta.row == 0 || (this._bannerBody && meta.row == 1))
children[i].destroy();
}
if (clear) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]