Use virtual functions

This commit is contained in:
Rafostar
2020-09-23 15:14:32 +02:00
parent db8429d73f
commit e7e9b9c07d
3 changed files with 47 additions and 52 deletions

View File

@@ -81,9 +81,7 @@ class BoxedPopoverButton extends BoxedIconButton
});
this.popover.add(this.popoverBox);
this.popoverBox.show();
this.connect(
'clicked', this._onPopoverButtonClicked.bind(this)
);
if(this.isFullscreen)
this.popover.get_style_context().add_class('osd');
}
@@ -99,7 +97,7 @@ class BoxedPopoverButton extends BoxedIconButton
super.setFullscreenMode(isEnabled);
}
_onPopoverButtonClicked()
vfunc_clicked()
{
this.popover.popup();
}