[gnome-shell-extensions] apps-menu: Respect user's favorite apps order
- From: Jiro Matsuzawa <jmatsuzawa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] apps-menu: Respect user's favorite apps order
- Date: Wed, 11 Sep 2013 22:28:20 +0000 (UTC)
commit 17663f5f200716d148921061d7028db3ac6bc03d
Author: Jiro Matsuzawa <jmatsuzawa gnome org>
Date: Tue Aug 27 10:13:40 2013 +0900
apps-menu: Respect user's favorite apps order
https://bugzilla.gnome.org/show_bug.cgi?id=704248
extensions/apps-menu/extension.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index bc72afc..7b044ba 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -548,6 +548,9 @@ const ApplicationsButton = new Lang.Class({
if (category_menu_id) {
applist = this.applicationsByCategory[category_menu_id];
+ applist.sort(function(a,b) {
+ return a.get_name().toLowerCase() > b.get_name().toLowerCase();
+ });
} else {
applist = new Array();
let favorites = global.settings.get_strv('favorite-apps');
@@ -558,9 +561,6 @@ const ApplicationsButton = new Lang.Class({
}
}
- applist.sort(function(a,b) {
- return a.get_name().toLowerCase() > b.get_name().toLowerCase();
- });
return applist;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]