mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +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
26 lines
622 B
JavaScript
26 lines
622 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({
|
|
GTypeName: 'ClapperAppRemote',
|
|
},
|
|
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();
|
|
}
|
|
});
|