[gnome-shell] LookingGlass: add GObject and Gio to the ns available inline



commit 38750ba798086ebe355a780a02d423806a8af084
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Mar 6 16:20:04 2014 +0100

    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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 5c54d93..9c2966a 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; ' +


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]