Skip to content

Commit

Permalink
factsBox: use GObject.registerClass()
Browse files Browse the repository at this point in the history
For some reason I don't remember, just this class had been handled
differently in e2a5edf ("Port GObject classes to JS6 classes").
Handle them like all others.

Fixes this problem:
gnome-shell[9973]: TypeError: this.factsBox.refresh is not a function
  • Loading branch information
mwilck committed Oct 22, 2019
1 parent 0fc670a commit 69af56a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extension/widgets/factsBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ const TodaysFactsWidget = Me.imports.widgets.todaysFactsWidget.TodaysFactsWidget
* well as todays facts.
* @class
*/
var FactsBox =
const FactsBox = GObject.registerClass(
class FactsBox extends PopupMenu.PopupBaseMenuItem {
constructor(controller, panelWidget) {
super({reactive: false});
_init(controller, panelWidget) {
super._init({reactive: false});

this._controller = controller;

Expand Down Expand Up @@ -106,4 +106,4 @@ class FactsBox extends PopupMenu.PopupBaseMenuItem {
unfocus() {
global.stage.set_key_focus(null);
}
};
});

0 comments on commit 69af56a

Please sign in to comment.