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:
@ -2,10 +2,7 @@
|
||||
//
|
||||
// A widget showing the user avatar and name
|
||||
|
||||
const Clutter = imports.gi.Clutter;
|
||||
const GLib = imports.gi.GLib;
|
||||
const GObject = imports.gi.GObject;
|
||||
const St = imports.gi.St;
|
||||
const { Clutter, GLib, GObject, St } = imports.gi;
|
||||
|
||||
const Params = imports.misc.params;
|
||||
|
||||
|
Reference in New Issue
Block a user