2016-09-01 12:12:54 +02:00
|
|
|
|
2017-11-07 10:42:17 +01:00
|
|
|
Index: gnome-shell-extensions-3.26.1/extensions/apps-menu/extension.js
|
2016-09-01 12:12:54 +02:00
|
|
|
===================================================================
|
2017-11-07 10:42:17 +01:00
|
|
|
--- gnome-shell-extensions-3.26.1.orig/extensions/apps-menu/extension.js
|
|
|
|
+++ gnome-shell-extensions-3.26.1/extensions/apps-menu/extension.js
|
|
|
|
@@ -33,6 +33,10 @@ const HORIZ_FACTOR = 5;
|
|
|
|
const MENU_HEIGHT_OFFSET = 132;
|
|
|
|
const NAVIGATION_REGION_OVERSHOOT = 50;
|
2016-09-01 12:12:54 +02:00
|
|
|
|
2017-11-07 10:42:17 +01:00
|
|
|
+function isSLEClassicMode() {
|
|
|
|
+ return Main.sessionMode.currentMode == "sle-classic" ? true : false;
|
|
|
|
+}
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
2017-11-07 10:42:17 +01:00
|
|
|
const ActivitiesMenuItem = new Lang.Class({
|
|
|
|
Name: 'ActivitiesMenuItem',
|
|
|
|
Extends: PopupMenu.PopupBaseMenuItem,
|
|
|
|
@@ -790,8 +794,6 @@ const ApplicationsButton = new Lang.Clas
|
2016-09-01 12:12:54 +02:00
|
|
|
let tree = new GMenu.Tree({ menu_basename: 'applications.menu' });
|
|
|
|
tree.load_sync();
|
|
|
|
let root = tree.get_root_directory();
|
|
|
|
- let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
|
|
- this.categoriesBox.add_actor(categoryMenuItem.actor);
|
|
|
|
let iter = root.iter();
|
|
|
|
let nextType;
|
|
|
|
while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
|
2017-11-07 10:42:17 +01:00
|
|
|
@@ -809,6 +811,10 @@ const ApplicationsButton = new Lang.Clas
|
2016-09-01 12:12:54 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
+ let categoryMenuItem = new CategoryMenuItem(this, null);
|
|
|
|
+ this.categoriesBox.insert_child_at_index(categoryMenuItem.actor,
|
2017-11-07 10:42:17 +01:00
|
|
|
+ isSLEClassicMode() ? -1 : 0);
|
2016-09-01 12:12:54 +02:00
|
|
|
+
|
|
|
|
//Load applications
|
|
|
|
this._displayButtons(this._listApplications(null));
|
|
|
|
|