Skip to content

Commit

Permalink
Bind this for closures (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-kehl committed Nov 14, 2023
1 parent 433e4c3 commit fe60a93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export default class VolumeScrollerExtension extends Extension {

this.scroll_binding = this.panel.connect(
"scroll-event",
this._handle_scroll
this._handle_scroll.bind(this)
);
this.sink_binding = this.controller.connect(
"default-sink-changed",
this._handle_sink_change
this._handle_sink_change.bind(this)
);
}

Expand Down Expand Up @@ -81,7 +81,6 @@ export default class VolumeScrollerExtension extends Extension {
this.sink.push_volume();

this._show_volume(volume);

return Clutter.EVENT_STOP;
}

Expand Down
2 changes: 1 addition & 1 deletion [email protected]/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"url": "https://github.com/francislavoie/gnome-shell-volume-scroller",
"uuid": "[email protected]",
"settings-schema": "org.gnome.shell.extensions.volume-scroller",
"version": 12
"version": 13
}

0 comments on commit fe60a93

Please sign in to comment.