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:
Florian Müllner
2023-07-10 07:02:05 +02:00
parent 93a2e7bdba
commit 6d8f54a20b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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);