cleanup: Use destructuring for imports from GI

This is *much* nicer than repetitive "imports.gi" lines ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/399
This commit is contained in:
Florian Müllner
2019-02-09 04:21:36 +01:00
parent a1534dab02
commit fd50b9a45e
124 changed files with 150 additions and 595 deletions

View File

@ -2,11 +2,7 @@
const UI = imports.testcommon.ui;
const Clutter = imports.gi.Clutter;
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
const Shell = imports.gi.Shell;
const St = imports.gi.St;
const { Clutter, GObject, Gtk, Shell, St } = imports.gi;
// 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