Add 'r' as an alias to 'restart' in run dialog

For even faster turnaround inspection of changes.

Also add a comment about the idle_add in the 'lg' command.
This commit is contained in:
Colin Walters 2009-08-26 18:43:44 -04:00
parent 0f4e9189c5
commit ecc1f964c9

View File

@ -36,9 +36,16 @@ RunDialog.prototype = {
this._internalCommands = { 'lg': this._internalCommands = { 'lg':
Lang.bind(this, function() { Lang.bind(this, function() {
// Run in an idle to avoid recursive key grab problems
Mainloop.idle_add(function() { Main.createLookingGlass().open(); }); Mainloop.idle_add(function() { Main.createLookingGlass().open(); });
}), }),
'r': Lang.bind(this, function() {
let global = Shell.Global.get();
global.reexec_self();
}),
// Developer brain backwards compatibility
'restart': Lang.bind(this, function() { 'restart': Lang.bind(this, function() {
let global = Shell.Global.get(); let global = Shell.Global.get();
global.reexec_self(); global.reexec_self();