shellEntry: Make signal id variable private

Signal connection IDs should be private variables, so make this one
private.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/952
This commit is contained in:
Jonas Dreßler 2020-01-23 22:37:06 +01:00 committed by Florian Müllner
parent 5b2c604fe4
commit 056f5e5100

View File

@ -165,19 +165,19 @@ class CapsLockWarning extends St.Label {
this.connect('notify::mapped', () => { this.connect('notify::mapped', () => {
if (this.is_mapped()) { if (this.is_mapped()) {
this.stateChangedId = this._keymap.connect('state-changed', this._stateChangedId = this._keymap.connect('state-changed',
this._updateCapsLockWarningOpacity.bind(this)); this._updateCapsLockWarningOpacity.bind(this));
} else { } else {
this._keymap.disconnect(this.stateChangedId); this._keymap.disconnect(this._stateChangedId);
this.stateChangedId = 0; this._stateChangedId = 0;
} }
this._updateCapsLockWarningOpacity(); this._updateCapsLockWarningOpacity();
}); });
this.connect('destroy', () => { this.connect('destroy', () => {
if (this.stateChangedId > 0) if (this._stateChangedId > 0)
this._keymap.disconnect(this.stateChangedId); this._keymap.disconnect(this._stateChangedId);
}); });
this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE; this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;