mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Add Clapper usage as GTK widget
This commit is contained in:
@@ -1,9 +1,30 @@
|
||||
const { GstPlayer, Gtk } = imports.gi;
|
||||
const Debug = imports.clapper_src.debug;
|
||||
|
||||
var clapperPath;
|
||||
var clapperVersion;
|
||||
|
||||
let { debug } = Debug;
|
||||
let inhibitCookie;
|
||||
|
||||
function getClapperPath()
|
||||
{
|
||||
return (clapperPath)
|
||||
? clapperPath
|
||||
: (pkg)
|
||||
? `${pkg.datadir}/${pkg.name}`
|
||||
: '.';
|
||||
}
|
||||
|
||||
function getClapperVersion()
|
||||
{
|
||||
return (clapperVersion)
|
||||
? clapperVersion
|
||||
: (pkg)
|
||||
? pkg.version
|
||||
: '';
|
||||
}
|
||||
|
||||
function inhibitForState(state, window)
|
||||
{
|
||||
let isInhibited = false;
|
||||
|
Reference in New Issue
Block a user