[gnome-characters] window: Reverse the order of recent characters
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters] window: Reverse the order of recent characters
- Date: Wed, 1 Jul 2015 03:22:57 +0000 (UTC)
commit b703fa5c6172fdf97dc43738dc0f3b9739ee66f2
Author: Daiki Ueno <dueno src gnome org>
Date: Wed Jul 1 12:22:42 2015 +0900
window: Reverse the order of recent characters
src/window.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/window.js b/src/window.js
index e3eea97..2ff8a73 100644
--- a/src/window.js
+++ b/src/window.js
@@ -347,7 +347,7 @@ const MainView = new Lang.Class({
addToRecent: function(uc) {
if (this.recentCharacters.indexOf(uc) < 0) {
- this.recentCharacters.push(uc);
+ this.recentCharacters.unshift(uc);
if (this.recentCharacters.length > this._maxRecentCharacters)
this.recentCharacters = this.recentCharacters.slice(
0, this._maxRecentCharacters);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]