2016-09-01 12:12:54 +02:00
|
|
|
|
2018-03-09 11:02:15 +01:00
|
|
|
Index: gnome-shell-extensions-3.27.91/extensions/apps-menu/extension.js
|
2016-09-01 12:12:54 +02:00
|
|
|
===================================================================
|
2018-03-09 11:02:15 +01:00
|
|
|
--- gnome-shell-extensions-3.27.91.orig/extensions/apps-menu/extension.js
|
|
|
|
+++ gnome-shell-extensions-3.27.91/extensions/apps-menu/extension.js
|
|
|
|
@@ -32,6 +32,10 @@ const HORIZ_FACTOR = 5;
|
2017-11-07 10:42:17 +01:00
|
|
|
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
|
|
|
+
|
2018-03-09 11:02:15 +01:00
|
|
|
class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem {
|
|
|
|
constructor(button) {
|
|
|
|
super();
|
|
|
|
@@ -776,8 +780,6 @@ class ApplicationsButton extends PanelMe
|
|
|
|
this.applicationsByCategory = {};
|
|
|
|
this._tree.load_sync();
|
|
|
|
let root = this._tree.get_root_directory();
|
2016-09-01 12:12:54 +02:00
|
|
|
- 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) {
|
2018-03-09 11:02:15 +01:00
|
|
|
@@ -795,6 +797,10 @@ class ApplicationsButton extends PanelMe
|
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));
|
|
|
|
|