mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
In order to not end up with random names prefixed with Gjs_, give each class a proper name, so its easier to inspect and allows usage with UI files
23 lines
499 B
JavaScript
23 lines
499 B
JavaScript
const { GObject } = imports.gi;
|
|
const { HeaderBarBase } = imports.src.headerbarBase;
|
|
|
|
var HeaderBarRemote = GObject.registerClass({
|
|
GTypeName: 'ClapperHeaderBarRemote',
|
|
},
|
|
class ClapperHeaderBarRemote extends HeaderBarBase
|
|
{
|
|
_init()
|
|
{
|
|
super._init();
|
|
this.extraButtonsBox.visible = false;
|
|
}
|
|
|
|
_onWindowButtonActivate(action)
|
|
{
|
|
if(action === 'toggle-maximized')
|
|
action = 'toggle_maximized';
|
|
|
|
this.root.child.sendWs(action);
|
|
}
|
|
});
|