mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js: Split gi imports to be on new lines to prepare for ES modules
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2794>
This commit is contained in:
parent
8d562ff71c
commit
1e9b906cbc
148 changed files with 716 additions and 179 deletions
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 640, height: 480 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Cogl, Clutter, Meta, St } = imports.gi;
|
||||
const Cogl = imports.gi.Cogl;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Meta = imports.gi.Meta;
|
||||
const St = imports.gi.St;
|
||||
|
||||
|
||||
function test() {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 640, height: 480 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 640, height: 480 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 640, height: 480 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, GLib, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GLib = imports.gi.GLib;
|
||||
const St = imports.gi.St;
|
||||
|
||||
const DELAY = 2000;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 640, height: 480 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 400, height: 400 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, GLib, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GLib = imports.gi.GLib;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage({ width: 400, height: 400 });
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const {Clutter, GObject, Shell, St} = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GObject = imports.gi.GObject;
|
||||
const Shell = imports.gi.Shell;
|
||||
const St = imports.gi.St;
|
||||
|
||||
// This is an interactive test of the sizing behavior of StScrollView. It
|
||||
// may be interesting in the future to split out the two classes at the
|
||||
|
|
|
|||
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const {Clutter, St} = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env gjs
|
||||
|
||||
imports.gi.versions.Gtk = '4.0';
|
||||
const {Gtk} = imports.gi;
|
||||
const Gtk = imports.gi.Gtk;
|
||||
|
||||
function nextTitle() {
|
||||
let length = Math.random() * 20;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
|
||||
const UI = imports.testcommon.ui;
|
||||
|
||||
const { Clutter, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const St = imports.gi.St;
|
||||
|
||||
function test() {
|
||||
let stage = new Clutter.Stage();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@ const Config = imports.misc.config;
|
|||
|
||||
imports.gi.versions = {Clutter: Config.LIBMUTTER_API_VERSION};
|
||||
|
||||
const { Clutter, Gio, GLib, St } = imports.gi;
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const Gio = imports.gi.Gio;
|
||||
const GLib = imports.gi.GLib;
|
||||
const St = imports.gi.St;
|
||||
|
||||
const Environment = imports.ui.environment;
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Test cases for version comparison
|
||||
|
||||
const { GObject } = imports.gi;
|
||||
const GObject = imports.gi.GObject;
|
||||
|
||||
const JsUnit = imports.jsUnit;
|
||||
const Signals = imports.misc.signals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue