From 7f587fd4dab3bfecde3b6dd901c85b5d2c9df966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 5 Feb 2013 19:06:19 +0100 Subject: [PATCH] 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 file changed, 2 insertions(+) diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js index 49faf7ad0..1722861d7 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)