js: Really use connectObject()
I forgot in two places to change the actual connect() function
to connectObject() 🤦️
Fixes commit 3bfaf6f88a.
This commit is contained in:
@@ -383,7 +383,7 @@ class ApplicationsButton extends PanelMenu.Button {
|
||||
this.name = 'panelApplications';
|
||||
this.label_actor = this._label;
|
||||
|
||||
Main.overview.connect(
|
||||
Main.overview.connectObject(
|
||||
'showing', () => this.add_accessible_state(Atk.StateType.CHECKED),
|
||||
'hiding', () => this.remove_accessible_state(Atk.StateType.CHECKED),
|
||||
this);
|
||||
|
||||
@@ -132,7 +132,7 @@ class MyWorkspacesView extends WorkspacesView.WorkspacesView {
|
||||
|
||||
this._pickWorkspace = false;
|
||||
this._pickWindow = false;
|
||||
global.stage.connect(
|
||||
global.stage.connectObject(
|
||||
'key-press-event', this._onKeyPress.bind(this),
|
||||
'key-release-event', this._onKeyRelease.bind(this),
|
||||
this);
|
||||
|
||||
Reference in New Issue
Block a user