[gnome-shell] js: Initialize some properties
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] js: Initialize some properties
- Date: Fri, 31 Jan 2020 16:47:34 +0000 (UTC)
commit 53ac00eabba73c0bf6727393e5067dc4af2a58b1
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 82c326b105..10703e300c 100644
--- a/js/ui/overview.js
+++ b/js/ui/overview.js
@@ -137,6 +137,7 @@ class OverviewActor extends St.BoxLayout {
var Overview = class {
constructor() {
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 3e304146e1..c1a1f1134a 100644
--- a/js/ui/shellEntry.js
+++ b/js/ui/shellEntry.js
@@ -166,6 +166,7 @@ class CapsLockWarning extends St.Label {
let seat = Clutter.get_default_backend().get_default_seat();
this._keymap = seat.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]