mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js: Port to modules
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1499>
This commit is contained in:
parent
d9198317ae
commit
a751e213f6
162 changed files with 2183 additions and 2336 deletions
|
|
@ -6,7 +6,7 @@ import Shew from 'gi://Shew';
|
|||
import {ExtensionPrefsDialog} from './extensionPrefsDialog.js';
|
||||
import {ServiceImplementation} from './dbusService.js';
|
||||
|
||||
const {deserializeExtension} = imports.misc.extensionUtils;
|
||||
import {deserializeExtension} from './misc/extensionUtils.js';
|
||||
const {loadInterfaceXML} = imports.misc.dbusUtils;
|
||||
|
||||
const ExtensionsIface = loadInterfaceXML('org.gnome.Shell.Extensions');
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import Gtk from 'gi://Gtk?version=4.0';
|
|||
import {ServiceImplementation} from './dbusService.js';
|
||||
|
||||
const {loadInterfaceXML, loadSubInterfaceXML} = imports.misc.dbusUtils;
|
||||
const Signals = imports.misc.signals;
|
||||
import * as Signals from './misc/signals.js';
|
||||
|
||||
const ScreencastIface = loadInterfaceXML('org.gnome.Shell.Screencast');
|
||||
|
||||
|
|
@ -63,7 +63,7 @@ const SessionState = {
|
|||
STOPPED: 'STOPPED',
|
||||
};
|
||||
|
||||
var Recorder = class extends Signals.EventEmitter {
|
||||
class Recorder extends Signals.EventEmitter {
|
||||
constructor(sessionPath, x, y, width, height, filePath, options,
|
||||
invocation) {
|
||||
super();
|
||||
|
|
@ -397,7 +397,7 @@ var Recorder = class extends Signals.EventEmitter {
|
|||
return Gst.parse_launch_full(fullPipeline, null,
|
||||
Gst.ParseFlags.FATAL_ERRORS);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
export const ScreencastService = class extends ServiceImplementation {
|
||||
static canScreencast() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue