[gnome-shell: 136/136] messageTray: Special-case chat notifications to use the old actor



commit cd5318baa7699923f9757e25576c9fb4e3aef2ac
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 20 11:18:15 2015 +0100

    messageTray: Special-case chat notifications to use the old actor

 js/ui/messageTray.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index a29d93b..9e9f7af 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -1889,7 +1889,11 @@ const MessageTray = new Lang.Class({
             this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onIdleMonitorBecameActive));
         }
 
-        this._banner = this._notification.createBanner();
+        // HACK: didn't manage to get chat into a proper state in time
+        if (this._notification.source.isChat)
+            this._banner = this._notification;
+        else
+            this._banner = this._notification.createBanner();
         this._bannerClickedId = this._banner.connect('done-displaying',
                                                      Lang.bind(this, this._escapeTray));
         this._bannerUnfocusedId = this._banner.connect('unfocused', Lang.bind(this, function() {


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