LookingGlass - JavaScript prompt and interactive Clutter controller

Add a dropdown pane triggered by Alt-F2, "lg" which supports interactive
JavaScript evaluation, saving/restoring a history file, as well as
an inspector element to pick by using the mouse.
This commit is contained in:
Colin Walters
2009-08-02 03:46:01 -04:00
parent 224538c885
commit 52ae75d4b8
3 changed files with 486 additions and 1 deletions

View File

@ -31,7 +31,12 @@ RunDialog.prototype = {
this._isOpen = false;
this._internalCommands = { 'restart': Lang.bind(this, function() {
this._internalCommands = { 'lg':
Lang.bind(this, function() {
Mainloop.idle_add(function() { Main.createLookingGlass().open(); });
}),
'restart': Lang.bind(this, function() {
let global = Shell.Global.get();
global.reexec_self();
})