Add initial ClapperRemote app

This commit is contained in:
Rafostar
2020-12-11 15:38:25 +01:00
parent 6315669933
commit 4875a31be4
4 changed files with 58 additions and 8 deletions

17
clapper_src/appRemote.js Normal file
View File

@@ -0,0 +1,17 @@
const { GObject } = imports.gi;
const { AppBase } = imports.clapper_src.appBase;
const { HeaderBarBase } = imports.clapper_src.headerbarBase;
var AppRemote = GObject.registerClass(
class ClapperAppRemote extends AppBase
{
vfunc_startup()
{
super.vfunc_startup();
let headerBar = new HeaderBarBase(this.active_window);
this.active_window.set_titlebar(headerBar);
this.active_window.maximize();
}
});

17
clapper_src/mainRemote.js Normal file
View File

@@ -0,0 +1,17 @@
imports.gi.versions.Gdk = '4.0';
imports.gi.versions.Gtk = '4.0';
const { AppRemote } = imports.clapper_src.appRemote;
const Misc = imports.clapper_src.misc;
const opts = {
idPostfix: 'Remote',
};
Misc.clapperPath = pkg.datadir + '/' +
pkg.name.substring(0, pkg.name.lastIndexOf(opts.idPostfix));
function main()
{
new AppRemote(opts).run();
}