[polari/wip/fmuellner/window-experiments: 18/29] roomStack: Initialize active room and sensitivity



commit 71293f288b847d0810f04a21cee186901110fe07
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 14 17:54:51 2016 +0200

    roomStack: Initialize active room and sensitivity
    
    The stack is currently monitoring the window's :active-room property
    and ::active-room-state-changed' signal, but doesn't pick up the
    existing state in case there already was a room or connection when
    opening the window. Make sure to initialize those properly to behave
    as expected.

 src/roomStack.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/roomStack.js b/src/roomStack.js
index a718016..859a08b 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -52,6 +52,8 @@ const RoomStack = new Lang.Class({
                          Lang.bind(this, this._activeRoomChanged));
         toplevel.connect('active-room-state-changed',
                          Lang.bind(this, this._updateSensitivity));
+        this._activeRoomChanged();
+        this._updateSensitivity();
     },
 
     get entry_area_height() {


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