mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-29 23:32:04 +02:00
24 lines
583 B
JavaScript
24 lines
583 B
JavaScript
const { GObject } = imports.gi;
|
|
const { AppBase } = imports.src.appBase;
|
|
const { HeaderBarRemote } = imports.src.headerbarRemote;
|
|
const { WidgetRemote } = imports.src.widgetRemote;
|
|
|
|
var AppRemote = GObject.registerClass(
|
|
class ClapperAppRemote extends AppBase
|
|
{
|
|
vfunc_startup()
|
|
{
|
|
super.vfunc_startup();
|
|
|
|
const window = this.active_window;
|
|
|
|
const clapperWidget = new WidgetRemote();
|
|
window.set_child(clapperWidget);
|
|
|
|
const headerBar = new HeaderBarRemote();
|
|
window.set_titlebar(headerBar);
|
|
|
|
window.maximize();
|
|
}
|
|
});
|