[gnome-shell] messageTray: Add 'source-removed' signal
- From: Florian MÃllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] messageTray: Add 'source-removed' signal
- Date: Tue, 5 Feb 2013 18:54:53 +0000 (UTC)
commit 7f587fd4dab3bfecde3b6dd901c85b5d2c9df966
Author: Florian MÃllner <fmuellner gnome org>
Date: Tue Feb 5 19:06:19 2013 +0100
messageTray: Add 'source-removed' signal
While it is possible to keep track of removed sources by tracking
their summary items' actor:.destroy signal, a dedicated signal
mirroring the existing 'source-added' one is more convenient.
https://bugzilla.gnome.org/show_bug.cgi?id=693220
js/ui/messageTray.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 49faf7a..1722861 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1817,6 +1817,8 @@ const MessageTray = new Lang.Class({
summaryItem.destroy();
+ this.emit('source-removed', source);
+
this._updateNoMessagesLabel();
if (needUpdate)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]