[polari/wip/fmuellner/window-experiments: 2/15] roomStack: Initialize active room and sensitivity
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/window-experiments: 2/15] roomStack: Initialize active room and sensitivity
- Date: Thu, 21 Jul 2016 02:56:30 +0000 (UTC)
commit dd3b7ecad84d19199463c37ebf45dae0bf29787a
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]