From 38750ba798086ebe355a780a02d423806a8af084 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 6 Mar 2014 16:20:04 +0100 Subject: [PATCH] LookingGlass: add GObject and Gio to the ns available inline Having to go through import.gi is awfully inconvenient when one is using the looking glass as a quick gjs console, and we're already importing all sorts of stuff there. https://bugzilla.gnome.org/show_bug.cgi?id=725832 --- js/ui/lookingGlass.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 5c54d931b..9c2966a60 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -27,6 +27,8 @@ const CHEVRON = '>>> '; /* Imports...feel free to add here as needed */ var commandHeader = 'const Clutter = imports.gi.Clutter; ' + 'const GLib = imports.gi.GLib; ' + + 'const GObject = imports.gi.GObject; ' + + 'const Gio = imports.gi.Gio; ' + 'const Gtk = imports.gi.Gtk; ' + 'const Mainloop = imports.mainloop; ' + 'const Meta = imports.gi.Meta; ' +