From 8b81f23caf41710fe1f3b77e9c6c2757c253e821 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sat, 14 Jul 2012 18:24:10 -0400 Subject: [PATCH] lookingGlass: Use a more standard chevron '>>>' is used by the REPL history (as well as plenty of other REPLs). Using 'js>>>' to enter things makes the history look unaligned and strange. https://bugzilla.gnome.org/show_bug.cgi?id=679944 --- js/ui/lookingGlass.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index 3e6a086f7..5801d1f56 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -23,6 +23,8 @@ const Tweener = imports.ui.tweener; const Main = imports.ui.main; const JsParse = imports.misc.jsParse; +const CHEVRON = '>>> '; + /* Imports...feel free to add here as needed */ var commandHeader = 'const Clutter = imports.gi.Clutter; ' + 'const GLib = imports.gi.GLib; ' + @@ -897,7 +899,7 @@ const LookingGlass = new Lang.Class({ this._entryArea = new St.BoxLayout({ name: 'EntryArea' }); this._evalBox.add_actor(this._entryArea); - let label = new St.Label({ text: 'js>>> ' }); + let label = new St.Label({ text: CHEVRON }); this._entryArea.add(label); this._entry = new St.Entry({ can_focus: true }); @@ -972,7 +974,7 @@ const LookingGlass = new Lang.Class({ _pushResult: function(command, obj) { let index = this._results.length + this._offset; - let result = new Result('>>> ' + command, obj, index); + let result = new Result(CHEVRON + command, obj, index); this._results.push(result); this._resultsArea.add(result.actor); if (obj instanceof Clutter.Actor)