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
This commit is contained in:
Florian Müllner 2013-02-05 19:06:19 +01:00
parent f47c0601ce
commit 7f587fd4da

View File

@ -1817,6 +1817,8 @@ const MessageTray = new Lang.Class({
summaryItem.destroy();
this.emit('source-removed', source);
this._updateNoMessagesLabel();
if (needUpdate)