[gnome-shell/screen-shield-next: 7/9] ScreenShield: update the displayed title when the source changes



commit 0b7ca098ad1ab956bfec9d7d340c457fdf62da17
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sat Aug 4 01:16:07 2012 +0200

    ScreenShield: update the displayed title when the source changes
    
    Notifications in the lock screen need to watch signals on source
    and react accordingly.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=681143

 js/ui/screenShield.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 88a6bd4..3684d03 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -176,7 +176,8 @@ const NotificationsBox = new Lang.Class({
         }
 
         obj.contentUpdatedId = item.connect('content-updated', Lang.bind(this, this._onItemContentUpdated));
-        obj.sourceCountChangedId = item.source.connect('count-changed', Lang.bind(this, this._onSourceCountChanged));
+        obj.sourceCountChangedId = item.source.connect('count-changed', Lang.bind(this, this._onSourceChanged));
+        obj.sourceTitleChangedId = item.source.connect('title-changed', Lang.bind(this, this._onSourceChanged));
         obj.sourceDestroyId = item.source.connect('destroy', Lang.bind(this, this._onSourceDestroy));
         this._items.push(obj);
 
@@ -197,7 +198,7 @@ const NotificationsBox = new Lang.Class({
         this._updateItem(obj);
     },
 
-    _onSourceCountChanged: function(source) {
+    _onSourceChanged: function(source) {
         let obj = this._items[this._findSource(source)];
         this._updateItem(obj);
     },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]