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:
parent
5b2c604fe4
commit
056f5e5100
@ -165,19 +165,19 @@ class CapsLockWarning extends St.Label {
|
||||
|
||||
this.connect('notify::mapped', () => {
|
||||
if (this.is_mapped()) {
|
||||
this.stateChangedId = this._keymap.connect('state-changed',
|
||||
this._stateChangedId = this._keymap.connect('state-changed',
|
||||
this._updateCapsLockWarningOpacity.bind(this));
|
||||
} else {
|
||||
this._keymap.disconnect(this.stateChangedId);
|
||||
this.stateChangedId = 0;
|
||||
this._keymap.disconnect(this._stateChangedId);
|
||||
this._stateChangedId = 0;
|
||||
}
|
||||
|
||||
this._updateCapsLockWarningOpacity();
|
||||
});
|
||||
|
||||
this.connect('destroy', () => {
|
||||
if (this.stateChangedId > 0)
|
||||
this._keymap.disconnect(this.stateChangedId);
|
||||
if (this._stateChangedId > 0)
|
||||
this._keymap.disconnect(this._stateChangedId);
|
||||
});
|
||||
|
||||
this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
|
||||
|
Loading…
Reference in New Issue
Block a user