[gnome-shell/wip/rstrode/login-screen-extensions: 23/134] js: Initialize some properties




commit f485da9535622e6127ae9aa25cedaa91db67a778
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Jan 29 17:48:57 2020 +0100

    js: Initialize some properties
    
    Otherwise those can result in the (harmless) "reference to undefined
    property" warnings.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/970

 js/ui/overview.js   | 1 +
 js/ui/shellEntry.js | 1 +
 2 files changed, 2 insertions(+)
---
diff --git a/js/ui/overview.js b/js/ui/overview.js
index dc6ad1821b..5bad4cbd62 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -80,6 +80,7 @@ var Overview = class {
     constructor() {
         this._overviewCreated = false;
         this._initCalled = false;
+        this._visible = false;
 
         Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
         this._sessionUpdated();
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index fc8ee37a9a..55267e7c87 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -184,6 +184,7 @@ class CapsLockWarning extends St.Label {
         this.clutter_text.line_wrap = true;
 
         this._keymap = Clutter.get_default_backend().get_keymap();
+        this._stateChangedId = 0;
 
         this.connect('notify::mapped', () => {
             if (this.is_mapped()) {


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