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:
@ -1,9 +1,6 @@
|
||||
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
||||
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GObject = imports.gi.GObject;
|
||||
const Meta = imports.gi.Meta;
|
||||
const St = imports.gi.St;
|
||||
const { Clutter, GObject, Meta, St } = imports.gi;
|
||||
|
||||
const SwitcherPopup = imports.ui.switcherPopup;
|
||||
|
||||
|
Reference in New Issue
Block a user