[polari/wip/fmuellner/window-experiments: 23/30] chatroomManager: Set :active-room property of new windows



commit 6c3e1a0f80a5def571ea96dbb59c5d61d317cf03
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 14 16:04:43 2016 +0200

    chatroomManager: Set :active-room property of new windows

 src/chatroomManager.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/chatroomManager.js b/src/chatroomManager.js
index 8f0f201..48fc3cc 100644
--- a/src/chatroomManager.js
+++ b/src/chatroomManager.js
@@ -161,6 +161,10 @@ const _ChatroomManager = new Lang.Class({
         this._app.connect('window-added', (a, w) => {
             w.connect('notify::active-room',
                       Lang.bind(this, this._onActiveRoomChanged));
+            if (this._activeRoom)
+                w.connect('realize', w => {
+                    w.active_room = this._activeRoom;
+                });
         });
 
         this._settings = new Gio.Settings({ schema_id: 'org.gnome.Polari' });


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