[gnome-shell] messageTray: don't show the same notification in both locations
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: don't show the same notification in both locations
- Date: Thu, 15 Apr 2010 14:06:27 +0000 (UTC)
commit 10ac42d6ad7369bf72cb96613d43c965266fa8c1
Author: Dan Winship <danw gnome org>
Date: Wed Apr 7 15:32:47 2010 -0400
messageTray: don't show the same notification in both locations
If a notification is already being viewed from the summary area, and
it re-emits 'notify', don't show it a second time in the notification
area.
https://bugzilla.gnome.org/show_bug.cgi?id=614975
js/ui/messageTray.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 7822737..345c630 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -596,6 +596,9 @@ MessageTray.prototype = {
},
_onNotify: function(source, notification) {
+ if (notification == this._summaryNotification)
+ return;
+
if (this._getNotification(notification.id, source) == null) {
notification.connect('destroy',
Lang.bind(this, this.removeNotification));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]